站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

FileURLLister (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.net.protocol.file
Class FileURLLister

java.lang.Object
  extended byorg.jboss.net.protocol.URLListerBase
      extended byorg.jboss.net.protocol.file.FileURLLister
All Implemented Interfaces:
URLLister

public class FileURLLister
extends URLListerBase


Nested Class Summary
 
Nested classes inherited from class org.jboss.net.protocol.URLListerBase
URLListerBase.URLFilterImpl
 
Nested classes inherited from class org.jboss.net.protocol.URLLister
URLLister.URLFilter
 
Field Summary
 
Fields inherited from class org.jboss.net.protocol.URLListerBase
acceptAllFilter
 
Constructor Summary
FileURLLister()
           
 
Method Summary
protected  boolean doesDirTriggersRecursiveSearch(File file)
           
protected  Collection filesToURLs(URL baseUrl, File[] files)
           
protected  URL fileToURL(URL baseUrl, File file)
           
protected  Collection listFiles(URL baseUrl, URLLister.URLFilter filter, boolean scanNonDottedSubDirs)
           
 Collection listMembers(URL baseUrl, URLLister.URLFilter filter)
          List the members of the given collection that are accepted by the filter
 Collection listMembers(URL baseUrl, URLLister.URLFilter filter, boolean scanNonDottedSubDirs)
          List the members of the given collection that are accepted by the filter
protected  URL prependDirToUrl(URL baseUrl, String addenda, boolean isDirectory)
           
 
Methods inherited from class org.jboss.net.protocol.URLListerBase
listMembers, listMembers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileURLLister

public FileURLLister()
Method Detail

listMembers

public Collection listMembers(URL baseUrl,
                              URLLister.URLFilter filter)
                       throws IOException
Description copied from interface: URLLister
List the members of the given collection that are accepted by the filter

Parameters:
baseUrl - the URL to list; must end in "/"
filter - a filter that is called to determine if a member should be returned
Returns:
a Collection of URLs that match
Throws:
IOException - if there was a problem getting the list

listMembers

public Collection listMembers(URL baseUrl,
                              URLLister.URLFilter filter,
                              boolean scanNonDottedSubDirs)
                       throws IOException
Description copied from interface: URLLister
List the members of the given collection that are accepted by the filter

Parameters:
baseUrl - the URL to list; must end in "/"
filter - a filter that is called to determine if a member should be returned
scanNonDottedSubDirs - enables recursive search for directories containing no dots
Returns:
a Collection of URLs that match
Throws:
IOException - if there was a problem getting the list

listFiles

protected Collection listFiles(URL baseUrl,
                               URLLister.URLFilter filter,
                               boolean scanNonDottedSubDirs)

doesDirTriggersRecursiveSearch

protected boolean doesDirTriggersRecursiveSearch(File file)

prependDirToUrl

protected URL prependDirToUrl(URL baseUrl,
                              String addenda,
                              boolean isDirectory)

filesToURLs

protected Collection filesToURLs(URL baseUrl,
                                 File[] files)

fileToURL

protected URL fileToURL(URL baseUrl,
                        File file)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.