hudson.util
Class DirScanner
java.lang.Object
hudson.util.DirScanner
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- DirScanner.Full, DirScanner.Glob
public abstract class DirScanner
- extends Object
- implements Serializable
Visits a directory and its contents and pass them to the FileVisitor
.
A DirScanner
encapsulates the logic of how it filters files in the directory. It is also remotable.
- Since:
- 1.343
- See Also:
FileVisitor
,
Serialized Form
Method Summary |
abstract void |
scan(File dir,
FileVisitor visitor)
Scans the given directory and pass files onto the given visitor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirScanner
public DirScanner()
scan
public abstract void scan(File dir,
FileVisitor visitor)
throws IOException
- Scans the given directory and pass files onto the given visitor.
- Throws:
IOException
Copyright © 2004-2013. All Rights Reserved.