Class FileWalker

  • All Implemented Interfaces:
    java.util.Iterator<java.nio.file.Path>

    public class FileWalker
    extends java.lang.Object
    implements java.util.Iterator<java.nio.file.Path>
    Author:
    eugen.horovitz
    • Constructor Summary

      Constructors 
      Constructor Description
      FileWalker​(java.lang.String scannerBaseDir, int size, java.lang.String[] includes, java.lang.String[] excludes)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Iterable<java.lang.String> getAllFileNames​(java.lang.String scannerBaseDir, java.lang.String[] includes, java.lang.String[] excludes, boolean followSymlinks, boolean globCaseSensitive)  
      static java.lang.Iterable<java.lang.String> getFileNames​(java.lang.String scannerBaseDir, java.lang.String[] includes, java.lang.String[] excludes, boolean followSymlinks, boolean globCaseSensitive)  
      boolean hasNext()  
      java.util.Iterator<java.nio.file.Path> iterator()  
      java.nio.file.Path next()  
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • FileWalker

        public FileWalker​(java.lang.String scannerBaseDir,
                          int size,
                          java.lang.String[] includes,
                          java.lang.String[] excludes)
    • Method Detail

      • iterator

        public java.util.Iterator<java.nio.file.Path> iterator()
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<java.nio.file.Path>
      • next

        public java.nio.file.Path next()
        Specified by:
        next in interface java.util.Iterator<java.nio.file.Path>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<java.nio.file.Path>
      • getFileNames

        public static java.lang.Iterable<java.lang.String> getFileNames​(java.lang.String scannerBaseDir,
                                                                        java.lang.String[] includes,
                                                                        java.lang.String[] excludes,
                                                                        boolean followSymlinks,
                                                                        boolean globCaseSensitive)
      • getAllFileNames

        public static java.lang.Iterable<java.lang.String> getAllFileNames​(java.lang.String scannerBaseDir,
                                                                           java.lang.String[] includes,
                                                                           java.lang.String[] excludes,
                                                                           boolean followSymlinks,
                                                                           boolean globCaseSensitive)