public interface TarEntryExtractionStrategy
TarExtractor
to extract the tar
entries.TarExtractSpecification
Modifier and Type | Method and Description |
---|---|
void |
extract(TarEntryHeaderData headerData,
org.entityfs.DataSource src,
org.entityfs.Directory targetRoot,
TarExtractSpecification spec)
Extract the current Tar entry.
|
void extract(TarEntryHeaderData headerData, org.entityfs.DataSource src, org.entityfs.Directory targetRoot, TarExtractSpecification spec) throws org.entityfs.support.exception.WrappedIOException, TarFileParseException
headerData
- The Tar entry's header data.src
- The data source. When this method is called, the data source
is positioned at the start of the entry data, at a Tar block start. When
this method exits, it should be positioned at the next Tar block start,
after the entry data.targetRoot
- The root directory of the extraction target directory
hierarchy.spec
- The specification for the extraction operation.org.entityfs.support.exception.WrappedIOException
- On I/O errors.TarFileParseException
- If the extraction strategy does not know
how to deal with the entry.