API Overview API Index Package Overview Direct link to this page
Apache Ant 1.7.1
  org.apache.tools.tar. TarInputStream View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      InputStream
          FilterInputStream
              TarInputStream
Implements
Subclasses
Description
public class TarInputStream
  The TarInputStream reads a UNIX tar archive as an InputStream.
See also:   
Constructors
public TarInputStream (java.io.InputStream is)
  Constructor for TarInputStream.
public TarInputStream (java.io.InputStream is, int blockSize)
  Constructor for TarInputStream.
public TarInputStream (java.io.InputStream is, int blockSize, int recordSize)
  Constructor for TarInputStream.
Methods
Hide/Show inherited methods
public int available () throws java.io.IOException [Overrides java.io.FilterInputStream]
  Get the available data that can be read from the current entry in the archive.
public void close () throws java.io.IOException [Overrides java.io.FilterInputStream]
  Closes this stream.
public void copyEntryContents (java.io.OutputStream out) throws java.io.IOException
  Copies the contents of the current tar archive entry directly into an output stream.
public TarEntry getNextEntry () throws java.io.IOException
  Get the next entry in this tar archive.
public int getRecordSize ()
  Get the record size being used by this stream's TarBuffer.
public void mark (int markLimit) [Overrides java.io.FilterInputStream]
  Since we do not support marking just yet, we do nothing.
public boolean markSupported () [Overrides java.io.FilterInputStream]
  Since we do not support marking just yet, we return false.
public int read () throws java.io.IOException [Overrides java.io.FilterInputStream] [Specified in java.io.InputStream]
  Reads a byte from the current tar archive entry.
public int read (byte[] arg0) throws java.io.IOException [Inherited From java.io.FilterInputStream]
public int read (byte[] buf, int offset, int numToRead) throws java.io.IOException [Overrides java.io.FilterInputStream]
  Reads bytes from the current tar archive entry.
public void reset () [Overrides java.io.FilterInputStream]
Since we do not support marking just yet, we do nothing.
public void setDebug (boolean debug)
  Sets the debugging flag.
public long skip (long numToSkip) throws java.io.IOException [Overrides java.io.FilterInputStream]
  Skip bytes in the input buffer.
Fields
Hide/Show inherited fields
protected TarBuffer buffer
protected TarEntry currEntry
protected boolean debug
protected long entryOffset
protected long entrySize
protected boolean hasHitEOF
protectedvolatile java.io.InputStream in [Inherited From java.io.FilterInputStream]
protected byte oneBuf
This contents of this array is not used at all in this class, it is only here to avoid repreated object creation during calls to the no-arg read method.
protected byte readBuf
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar