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)
Register suffix to ignore when exploding the archive(s).
|
Set<String> |
getSupportedSuffixes() |
void |
unpack(ExploderFileProcessor processor,
File root)
Unpacks the contents of the file/directory, decompressing and unarchiving recursively.
|
void |
unpack(File root)
Unpacks the contents of the file/directory, decompressing and unarchiving recursively.
|
Exploder |
useTemporaryDirectory()
This will configure the current instance to use a temporary directory to
copy the target File to prior to unpacking.
|
Exploder |
useWorkingDirectory(File workingDirectory)
This will configure the current instance to use the specified working directory
and copy the target File to it prior to unpacking.
|
public static final String ARCHIVE_UNPACK_SUFFIX
public Exploder excludeSuffix(String suffix) throws InternalException
suffix - the suffix to ignore e.g. .jarInternalException - if an error occurs.public Exploder useTemporaryDirectory() throws InternalException
ExploderFileProcessor on an archive. This WILL delete the temporary
directory on completion.InternalException - if an error occurs.public Exploder useWorkingDirectory(File workingDirectory)
workingDirectory - the specified working directory to configure.public void unpack(File root) throws InternalException
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.