API Overview API Index Package Overview Direct link to this page
Apache Ant 1.7.1
  org.apache.tools.tar. TarBuffer View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      TarBuffer
Implements
Subclasses
Description
public class TarBuffer
  The TarBuffer class implements the tar archive concept of a buffered input stream.
See also:   
Constructors
public TarBuffer (java.io.InputStream inStream)
  Constructor for a TarBuffer on an input stream.
public TarBuffer (java.io.InputStream inStream, int blockSize)
  Constructor for a TarBuffer on an input stream.
public TarBuffer (java.io.InputStream inStream, int blockSize, int recordSize)
  Constructor for a TarBuffer on an input stream.
public TarBuffer (java.io.OutputStream outStream)
  Constructor for a TarBuffer on an output stream.
public TarBuffer (java.io.OutputStream outStream, int blockSize)
  Constructor for a TarBuffer on an output stream.
public TarBuffer (java.io.OutputStream outStream, int blockSize, int recordSize)
  Constructor for a TarBuffer on an output stream.
Methods
Hide/Show inherited methods
public void close () throws java.io.IOException
  Close the TarBuffer.
public int getBlockSize ()
  Get the TAR Buffer's block size.
public int getCurrentBlockNum ()
  Get the current block number, zero based.
public int getCurrentRecordNum ()
  Get the current record number, within the current block, zero based.
public int getRecordSize ()
  Get the TAR Buffer's record size.
public boolean isEOFRecord (byte[] record)
  Determine if an archive record indicate End of Archive.
public byte readRecord () throws java.io.IOException
  Read a record from the input stream and return the data.
public void setDebug (boolean debug)
  Set the debugging flag for the buffer.
public void skipRecord () throws java.io.IOException
  Skip over a record on the input stream.
public void writeRecord (byte[] record) throws java.io.IOException
  Write an archive record to the archive.
public void writeRecord (byte[] buf, int offset) throws java.io.IOException
  Write an archive record to the archive, where the record may be inside of a larger array buffer.
Fields
Hide/Show inherited fields
publicfinalstatic int DEFAULT_BLKSIZE = "10240"
Default block size
publicfinalstatic int DEFAULT_RCDSIZE = "512"
Default record size
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar