Class FileURLLister

  • All Implemented Interfaces:
    URLLister

    public class FileURLLister
    extends java.lang.Object
    implements URLLister
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.lang.String pattern)
      Indicates if this lister is able to list urls with the given pattern.
      java.util.List<java.net.URL> listAll​(java.net.URL url)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FileURLLister

        public FileURLLister()
      • FileURLLister

        public FileURLLister​(java.io.File baseDir)
    • Method Detail

      • accept

        public boolean accept​(java.lang.String pattern)
        Description copied from interface: URLLister
        Indicates if this lister is able to list urls with the given pattern. In general, only protocol is used.
        Specified by:
        accept in interface URLLister
        Parameters:
        pattern - ditto
        Returns:
        boolean
      • listAll

        public java.util.List<java.net.URL> listAll​(java.net.URL url)
                                             throws java.io.IOException
        Specified by:
        listAll in interface URLLister
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object