hudson.util
Class DirScanner

java.lang.Object
  extended by 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

Nested Class Summary
static class DirScanner.Filter
          Scans by filtering things out from FileFilter
static class DirScanner.Full
          Scans everything recursively.
static class DirScanner.Glob
          Scans by using Ant GLOB syntax.
 
Constructor Summary
DirScanner()
           
 
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
 

Constructor Detail

DirScanner

public DirScanner()
Method Detail

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.