Maven module :un.storage : archive-tar :
Class :
un.storage.archive.tar.TarBuffer
Extends/Implements : -
Subclasses : -
Variables :
DEFAULT_RCDSIZE,
DEFAULT_BLKSIZE
Functions :
TarBuffer,
TarBuffer,
TarBuffer,
TarBuffer,
TarBuffer,
TarBuffer,
getBlockSize,
getRecordSize,
isEOFRecord,
skipRecord,
readRecord,
getCurrentBlockNum,
getCurrentRecordNum,
writeRecord,
writeRecord,
close
public int
DEFAULT_RCDSIZE
public int
DEFAULT_BLKSIZE
public void
TarBuffer (ByteInputStream inStream)
public void
TarBuffer (ByteInputStream inStream, int blockSize)
public void
TarBuffer (ByteInputStream inStream, int blockSize, int recordSize)
public void
TarBuffer (ByteOutputStream outStream)
public void
TarBuffer (ByteOutputStream outStream, int blockSize)
public void
TarBuffer (ByteOutputStream outStream, int blockSize, int recordSize)
public int
getBlockSize ()
public int
getRecordSize ()
public boolean
isEOFRecord (byte[] record)
public void
skipRecord ()
public byte[]
readRecord ()
public int
getCurrentBlockNum ()
public int
getCurrentRecordNum ()
public void
writeRecord (byte[] record)
public void
writeRecord (byte[] buf, int offset)
public void
close ()
stream. This concept goes back to the days of blocked tape drives and special
io devices. In the Java universe, the only real function that this class
performs is to ensure that files have the correct "block" size, or other tars
will complain.
You should never have a need to access this class
directly. TarBuffers are created by Tar IO Streams.
@author Timothy Gerard Endres, time@trustice.com.