dutils.digger
Class DirectoryDigger

java.lang.Object
  |
  +--dutils.digger.Digger
        |
        +--dutils.digger.DirectoryDigger

public class DirectoryDigger
extends Digger

A directory Digger.
Digs a given directory using the given SearchData.

Version:
1.0
Author:
Daniel Or

Constructor Summary
DirectoryDigger(java.io.File dir, dutils.digger.SearchData searchData)
          Constructor for DirectoryDigger.
 
Method Summary
 java.lang.String[] dig()
          performs a dig (search) operation and returns results as a String array where each String describes an absolute location of a matching result.
In the context of files, an absolute result is a file's full path.
 java.lang.String[] digRelative()
          performs a dig (search) operation and returns results as a String array where each String describes a relative location of a matching result (relative to this digger search start point).
In the context of files, a relative result is a file's relative path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryDigger

public DirectoryDigger(java.io.File dir,
                       dutils.digger.SearchData searchData)
Constructor for DirectoryDigger.

Parameters:
searchData -
Method Detail

dig

public java.lang.String[] dig()
Description copied from class: Digger
performs a dig (search) operation and returns results as a String array where each String describes an absolute location of a matching result.
In the context of files, an absolute result is a file's full path.

Specified by:
dig in class Digger
Returns:
String[] containing search results.
See Also:
Digger.dig()

digRelative

public java.lang.String[] digRelative()
Description copied from class: Digger
performs a dig (search) operation and returns results as a String array where each String describes a relative location of a matching result (relative to this digger search start point).
In the context of files, a relative result is a file's relative path.

Specified by:
digRelative in class Digger
Returns:
String[] containing search results.
See Also:
Digger.digRelative()