Class DirectoryScanner


  • public class DirectoryScanner
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void exclude​(java.lang.String pattern)  
      java.lang.String[] getIncludedFiles()
      Scans the root directory with the patterns that have been included and excluded and returns the names of the resulting file set relative to the root dir.
      java.io.File getRoot()  
      void include​(java.lang.String pattern)  
      void setDirty()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DirectoryScanner

        public DirectoryScanner​(java.io.File dirToScan,
                                JamLogger logger)
    • Method Detail

      • include

        public void include​(java.lang.String pattern)
      • exclude

        public void exclude​(java.lang.String pattern)
      • getIncludedFiles

        public java.lang.String[] getIncludedFiles()
                                            throws java.io.IOException
        Scans the root directory with the patterns that have been included and excluded and returns the names of the resulting file set relative to the root dir.
        Throws:
        java.io.IOException
      • setDirty

        public void setDirty()
      • getRoot

        public java.io.File getRoot()