public class TarGzOutputStream extends TarOutputStream
| Constructor and Description |
|---|
TarGzOutputStream(java.io.OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Ends the TAR archive and closes the underlying OutputStream.
|
void |
closeEntry()
Close an entry.
|
void |
finish()
Ends the TAR archive without closing the underlying OutputStream.
|
int |
getRecordSize()
Get the record size being used by this stream's TarBuffer.
|
void |
putNextEntry(TarEntry entry)
Put an entry on the output stream.
|
void |
setBufferDebug(boolean b)
Sets the debugging flag in this stream's TarBuffer.
|
void |
setDebug(boolean b)
Sets the debugging flag.
|
void |
write(byte[] b)
Writes bytes to the current tar archive entry.
|
void |
write(byte[] b,
int start,
int length)
Writes bytes to the current tar archive entry.
|
void |
write(int b)
Writes a byte to the current tar archive entry.
|
public TarGzOutputStream(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic void setDebug(boolean b)
TarOutputStreamsetDebug in class TarOutputStreamb - True to turn on debugging.public void setBufferDebug(boolean b)
TarOutputStreamsetBufferDebug in class TarOutputStreamb - True to turn on debugging.public void finish()
throws java.io.IOException
TarOutputStreamfinish in class TarOutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
TarOutputStreamclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class TarOutputStreamjava.io.IOExceptionpublic int getRecordSize()
TarOutputStreamgetRecordSize in class TarOutputStreampublic void putNextEntry(TarEntry entry) throws java.io.IOException
TarOutputStreamputNextEntry in class TarOutputStreamentry - The TarEntry to be written to the archive.java.io.IOExceptionpublic void closeEntry()
throws java.io.IOException
TarOutputStreamcloseEntry in class TarOutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
TarOutputStreamwrite in class TarOutputStreamb - The byte written.java.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
TarOutputStreamwrite in class TarOutputStreamb - The buffer to write to the archive.java.io.IOExceptionpublic void write(byte[] b,
int start,
int length)
throws java.io.IOException
TarOutputStreamwrite in class TarOutputStreamb - The buffer to write to the archive.start - The offset in the buffer from which to get bytes.length - The number of bytes to write.java.io.IOExceptionCopyright © 2014 EsprIT-Systems. All Rights Reserved.