org.at4j.tar
Interface TarEntryExtractionStrategy

All Known Implementing Classes:
ExtractTarEntryExtractionStrategy, PrintTarEntryExtractionStrategy

public interface TarEntryExtractionStrategy

This strategy object is used by the TarExtractor to extract the tar entries.

Since:
1.0
Author:
Karl Gustafsson
See Also:
TarExtractSpecification

Method Summary
 void extract(TarEntryHeaderData headerData, DataSource src, Directory targetRoot, TarExtractSpecification spec)
          Extract the current Tar entry.
 

Method Detail

extract

void extract(TarEntryHeaderData headerData,
             DataSource src,
             Directory targetRoot,
             TarExtractSpecification spec)
             throws WrappedIOException,
                    TarFileParseException
Extract the current Tar entry.

Parameters:
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.
Throws:
WrappedIOException - On I/O errors.
TarFileParseException - If the extraction strategy does not know how to deal with the entry.