org.at4j.tar
Interface TarEntryHandlerDelegate


public interface TarEntryHandlerDelegate

An implementation of the Tar entry handler delegate is used by the TarFileParser to deal with each entry that it parses.

Since:
1.0
Author:
Karl Gustafsson

Method Summary
 long handle(TarEntryHeaderData ehd, DataSource src)
          Handle a Tar entry.
 

Method Detail

handle

long handle(TarEntryHeaderData ehd,
            DataSource src)
Handle a Tar entry.

Parameters:
ehd - The entry's header data.
src - The data source. When this method is called it is positioned at the start of the entry data (at a Tar block boundary). When the method returns it should be at the same position or at another Tar block boundary at a higher position in the data source.
Returns:
The minimum number of bytes that should be skipped over to reach the next Tar entry header.