ArchivedSource supports other archive formats that the JDK doesn't support. Things like Zip64 (ie Enhanced_Deflate), sevenZ (7z), arj, etc. This uses the apache common-compress library under the hood so any format it can read should be available with this source. Each row holds the following keys:
ArchivedSource.unzip( file ).into()
...
.go()
For 7z:
ArchivedSource.sevenZ( file ).into()
...
.go()
For auto-detect format:
ArchivedSource.unarchive( file ).into()
...
.go()
Specific format:
ArchivedSource.unarchive( file ).format( ArchiveStreamFactory.ARJ ).into()
...
.go()
Constructor and description |
---|
ArchivedSource
(java.io.File file) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
doStart(Pipeline pipeline) |
|
ArchivedSource |
format(java.lang.String format) |
|
static ArchivedSource |
sevenZ(java.io.File file) |
|
static ArchivedSource |
unarchive(java.io.File archive) |
|
static ArchivedSource |
unzip(java.io.File zip) |
Groovy Documentation