|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dutils.digger.processors.ExtractingProcessor
This SearchProcessor
extracts matching entries into a given
directory.
Constructor Summary | |
ExtractingProcessor(java.io.File outputDir)
Creates a new ExtractingProcessor . |
|
ExtractingProcessor(java.lang.String outputDir)
Creates a new ExtractingProcessor . |
Method Summary | |
java.io.File |
getOutputDir()
|
boolean |
isKeepDirStructure()
|
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. |
void |
setKeepDirStructure(boolean b)
|
void |
setOutputDir(java.io.File file)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExtractingProcessor(java.io.File outputDir)
ExtractingProcessor
.
outputDir
- a directory to extract to.public ExtractingProcessor(java.lang.String outputDir)
ExtractingProcessor
.
outputDir
- a directory to extract to.Method Detail |
public boolean isKeepDirStructure()
public java.io.File getOutputDir()
public void setKeepDirStructure(boolean b)
b
- public void setOutputDir(java.io.File file)
file
- public void process(java.io.File f)
SearchProcessor
File
that matches the search criteria is found.
process
in interface SearchProcessor
f
- a File
to Process.public void process(java.io.File f, java.util.zip.ZipFile zFile, java.util.zip.ZipEntry zEntry)
SearchProcessor
ZipEntry
that matches the search criteria is found.
process
in interface SearchProcessor
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).SearchProcessor.process(File, ZipFile, ZipEntry)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |