API Overview API Index Package Overview Direct link to this page
Apache Ant 1.7.1
  org.apache.tools.tar. TarOutputStream View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      OutputStream
          FilterOutputStream
              TarOutputStream
Implements
Subclasses
Description
public class TarOutputStream
  The TarOutputStream writes a UNIX tar archive as an OutputStream.
See also:   
Constructors
public TarOutputStream (java.io.OutputStream os)
  Constructor for TarInputStream.
public TarOutputStream (java.io.OutputStream os, int blockSize)
  Constructor for TarInputStream.
public TarOutputStream (java.io.OutputStream os, int blockSize, int recordSize)
  Constructor for TarInputStream.
Methods
Hide/Show inherited methods
public void close () throws java.io.IOException [Overrides java.io.FilterOutputStream]
  Ends the TAR archive and closes the underlying OutputStream.
public void closeEntry () throws java.io.IOException
  Close an entry.
public void finish () throws java.io.IOException
  Ends the TAR archive without closing the underlying OutputStream.
public void flush () throws java.io.IOException [Inherited From java.io.FilterOutputStream]
public int getRecordSize ()
  Get the record size being used by this stream's TarBuffer.
public void putNextEntry (TarEntry entry) throws java.io.IOException
  Put an entry on the output stream.
public void setBufferDebug (boolean debug)
  Sets the debugging flag in this stream's TarBuffer.
public void setDebug (boolean debugF)
  Sets the debugging flag.
public void setLongFileMode (int longFileMode)
  Set the long file mode.
public void write (byte[] wBuf) throws java.io.IOException [Overrides java.io.FilterOutputStream]
  Writes bytes to the current tar archive entry.
public void write (byte[] wBuf, int wOffset, int numToWrite) throws java.io.IOException [Overrides java.io.FilterOutputStream]
  Writes bytes to the current tar archive entry.
public void write (int b) throws java.io.IOException [Overrides java.io.FilterOutputStream] [Specified in java.io.OutputStream]
  Writes a byte to the current tar archive entry.
Fields
Hide/Show inherited fields
protected byte assemBuf
protected int assemLen
protected TarBuffer buffer
protected long currBytes
protected java.lang.String currName
protected long currSize
protected boolean debug
publicfinalstatic int LONGFILE_ERROR = "0"
Fail if a long file name is required in the archive.
publicfinalstatic int LONGFILE_GNU = "2"
GNU tar extensions are used to store long file names in the archive.
publicfinalstatic int LONGFILE_TRUNCATE = "1"
Long paths will be truncated in the archive.
protected int longFileMode
protected byte oneBuf
protected java.io.OutputStream out [Inherited From java.io.FilterOutputStream]
protected byte recordBuf
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar