public class Exploder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ARCHIVE_UNPACK_SUFFIX
Use a unique suffix for unpacking archives.
|
| Constructor and Description |
|---|
Exploder() |
| Modifier and Type | Method and Description |
|---|---|
Exploder |
excludeSuffix(String suffix) |
Set<String> |
getSupportedSuffixes() |
void |
unpack(ExploderFileProcessor processor,
File root)
Unpacks the contents of the file/directory, decompressing and unarchiving recursively.
|
void |
unpack(ExploderFileProcessor processor,
File working,
File root)
This version uses the specified working directory to explode to.
|
void |
unpack(File root)
Unpacks the contents of the file/directory, decompressing and unarchiving recursively.
|
public static final String ARCHIVE_UNPACK_SUFFIX
public Exploder excludeSuffix(String suffix) throws InternalException
InternalExceptionpublic void unpack(File root) throws InternalException
root - root file (or directory contents) to explodeInternalException - if an error occurs.public void unpack(ExploderFileProcessor processor, File working, File root) throws InternalException
processor - the optional FileProcessorworking - a working directory (e.g. a temporary directory to use).root - root file (or directory contents) to explodeInternalException - if an error occurs.public void unpack(ExploderFileProcessor processor, File root) throws InternalException
processor - the optional FileProcessorroot - root file (or directory contents) to explodeInternalException - if an error occurs.Copyright © 2018. All Rights Reserved.