SFRMTarInputStream

public class SFRMTarInputStream extends TarInputStream
Author:Patrick Yip

Constructors

SFRMTarInputStream

public SFRMTarInputStream(InputStream arg0)

SFRMTarInputStream

public SFRMTarInputStream(InputStream is, int blockSize)

SFRMTarInputStream

public SFRMTarInputStream(InputStream is, int blockSize, int recordSize)

Methods

getNextEntry

public TarEntry getNextEntry()

Get the next entry in this tar archive. This will skip over any remaining data in the current entry, if there is one, and place the input stream at the header of the next entry, and read the header and instantiate a new TarEntry from the header bytes and return that entry. If there are no more entries in the archive, null will be returned to indicate that the end of the archive has been reached.

Throws:
  • IOException – on error
Returns:

The next TarEntry in the archive, or null.