public class PrintTarEntryExtractionStrategy extends Object implements TarEntryExtractionStrategy
TarExtractor
to just
print the contents of the Tar file.TarExtractor
,
TarExtractSpecification
Constructor and Description |
---|
PrintTarEntryExtractionStrategy(PrintStream out)
Create a printing strategy that will print to the supplied stream.
|
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.
|
public PrintTarEntryExtractionStrategy(PrintStream out)
out
- The stream to print to.public void extract(TarEntryHeaderData headerData, org.entityfs.DataSource src, org.entityfs.Directory targetRoot, TarExtractSpecification spec) throws org.entityfs.support.exception.WrappedIOException, TarFileParseException
TarEntryExtractionStrategy
extract
in interface TarEntryExtractionStrategy
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.