dutils.digger
Class ArchiveDigger

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

public class ArchiveDigger
extends Digger

Implements a search operation whithin an archive.
The operation is implemented as a class to ease the handling of nested archives.

Version:
1.0
Author:
Daniel Or

Constructor Summary
ArchiveDigger(java.io.File archive, dutils.digger.SearchData searchData)
          Constructs a new Archivedigger.
 
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

ArchiveDigger

public ArchiveDigger(java.io.File archive,
                     dutils.digger.SearchData searchData)
Constructs a new Archivedigger.

Parameters:
archive -
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.

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[]