| Modifier and Type | Field and Description |
|---|---|
protected static String |
CUT_DIR_PATTERN |
protected static String |
CUT_DIR_REPLACEMENT |
| Constructor and Description |
|---|
UncompressTool() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.apache.commons.compress.archivers.ArchiveInputStream |
compressedInputStream(InputStream compressedFile) |
UncompressTool |
cutdirs()
Applies renaming for entries in compressed file by removing the first directory in there.
|
protected abstract int |
permissionsMode(org.apache.commons.compress.archivers.ArchiveEntry archiveEntry) |
protected File |
process(File input) |
ReplacementTuple<UncompressTool> |
remap(String pattern)
Applies renaming for entries in compressed file.
|
UncompressTool |
toDir(File destination) |
UncompressTool |
toDir(String pathToDestination) |
execute, getExecutionService, run, setExecutionService, setPreviousTask, then, thenprotected static final String CUT_DIR_PATTERN
protected static final String CUT_DIR_REPLACEMENT
protected abstract org.apache.commons.compress.archivers.ArchiveInputStream compressedInputStream(InputStream compressedFile)
protected abstract int permissionsMode(org.apache.commons.compress.archivers.ArchiveEntry archiveEntry)
public UncompressTool toDir(String pathToDestination)
pathToDestination - destination where to uncompress a filepublic UncompressTool toDir(File destination)
destination - destination where to uncompress a filepublic ReplacementTuple<UncompressTool> remap(String pattern)
pattern - pattern to be find in archivereplacement - replacement of the path in archivepublic UncompressTool cutdirs()
Copyright © 2015 JBoss by Red Hat. All rights reserved.