Package org.whitesource.agent.utils
Class FileWalker
- java.lang.Object
-
- org.whitesource.agent.utils.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)booleanhasNext()java.util.Iterator<java.nio.file.Path>iterator()java.nio.file.Pathnext()voidremove()
-
-
-
Method Detail
-
iterator
public java.util.Iterator<java.nio.file.Path> iterator()
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<java.nio.file.Path>
-
next
public java.nio.file.Path next()
- Specified by:
nextin interfacejava.util.Iterator<java.nio.file.Path>
-
remove
public void remove()
- Specified by:
removein interfacejava.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)
-
-