dutils.digger.processors
Class FieldPrintProcessor

java.lang.Object
  |
  +--dutils.digger.processors.FieldPrintProcessor
All Implemented Interfaces:
SearchProcessor

public class FieldPrintProcessor
extends java.lang.Object
implements SearchProcessor

This SearchProcessor prints matching fields to the standard output stream.

Author:
Daniel Or

Constructor Summary
FieldPrintProcessor(FieldComparator fc)
          Creates a new FieldPrintProcessor.
 
Method Summary
 void process(java.io.File f)
          Used when a File that matches the search criteria is found.
 void process(java.io.File f, java.util.zip.ZipFile zFile, java.util.zip.ZipEntry zEntry)
          Used when a ZipEntry that matches the search criteria is found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldPrintProcessor

public FieldPrintProcessor(FieldComparator fc)
Creates a new FieldPrintProcessor.

Parameters:
fc - the FieldComparator that is used to find matching fields.
Method Detail

process

public void process(java.io.File f)
Description copied from interface: SearchProcessor
Used when a File that matches the search criteria is found.

Specified by:
process in interface SearchProcessor
Parameters:
f - a File to Process.
See Also:
SearchProcessor.process(File)

process

public void process(java.io.File f,
                    java.util.zip.ZipFile zFile,
                    java.util.zip.ZipEntry zEntry)
Description copied from interface: SearchProcessor
Used when a ZipEntry that matches the search criteria is found.

Specified by:
process in interface SearchProcessor
Parameters:
zFile - the ZipFile where the ZipEntry was found.
zEntry - a ZipEntry to process.
f - the actual file being processed (important for entries in nested archives).
See Also:
SearchProcessor.process(File, ZipFile, ZipEntry)