|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface defining methods that can be used to list the contents of a URL collection irrespective of the protocol.
Nested Class Summary | |
static interface |
URLLister.URLFilter
Interface defining a filter for listed members. |
Method Summary | |
Collection |
listMembers(URL baseUrl,
String patterns)
List the members of the given collection URL that match the patterns supplied. |
Collection |
listMembers(URL baseUrl,
String patterns,
boolean scanNonDottedSubDirs)
List the members of the given collection URL that match the patterns supplied and, if it contains directory that contains NO dot in the name and scanNonDottedSubDirs is true, recursively finds URL in these directories. |
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 |
Method Detail |
public Collection listMembers(URL baseUrl, String patterns, boolean scanNonDottedSubDirs) throws IOException
baseUrl
- the URL to list; must end in "/"patterns
- the patterns to match (separated by ',')scanNonDottedSubDirs
- enables recursive search for directories containing no dots
IOException
- if there was a problem getting the listpublic Collection listMembers(URL baseUrl, String patterns) throws IOException
baseUrl
- the URL to list; must end in "/"patterns
- the patterns to match (separated by ',')
IOException
- if there was a problem getting the listpublic Collection listMembers(URL baseUrl, URLLister.URLFilter filter, boolean scanNonDottedSubDirs) throws IOException
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
IOException
- if there was a problem getting the listpublic Collection listMembers(URL baseUrl, URLLister.URLFilter filter) throws IOException
baseUrl
- the URL to list; must end in "/"filter
- a filter that is called to determine if a member should
be returned
IOException
- if there was a problem getting the list
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |