org.jboss.net.protocol.file
Class FileURLLister

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

public class FileURLLister
extends URLListerBase

FileURLLister

Version:
$Revision: 1.9 $
Author:
jboynes@users.sf.net, Dimitris Andreadis

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.net.protocol.URLListerBase
URLListerBase.URLFilterImpl
 
Nested classes/interfaces inherited from interface org.jboss.net.protocol.URLLister
URLLister.URLFilter
 
Field Summary
 
Fields inherited from class org.jboss.net.protocol.URLListerBase
acceptAllFilter
 
Constructor Summary
FileURLLister()
           
 
Method Summary
 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
 
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


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