当前页面:
在线文档首页 >
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
org.jboss.net.protocol.URLListerBase
org.jboss.net.protocol.file.FileURLLister
- All Implemented Interfaces:
- URLLister
- public class FileURLLister
- extends URLListerBase
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileURLLister
public FileURLLister()
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 returnedscanNonDottedSubDirs
- 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.