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

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


org.jboss.net.protocol
Interface URLLister

All Known Implementing Classes:
URLListerBase

public interface URLLister

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

listMembers

public Collection listMembers(URL baseUrl,
                              String patterns,
                              boolean scanNonDottedSubDirs)
                       throws IOException
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.

Parameters:
baseUrl - the URL to list; must end in "/"
patterns - the patterns to match (separated by ',')
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

listMembers

public Collection listMembers(URL baseUrl,
                              String patterns)
                       throws IOException
List the members of the given collection URL that match the patterns supplied. Doesn't recursively list files contained in directories.

Parameters:
baseUrl - the URL to list; must end in "/"
patterns - the patterns to match (separated by ',')
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
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

listMembers

public Collection listMembers(URL baseUrl,
                              URLLister.URLFilter filter)
                       throws IOException
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


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