public class TarOutputStream
extends java.io.FilterOutputStream
Constructor and Description |
---|
TarOutputStream(java.io.OutputStream out)
Creates a new tar output stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the output stream and write any necessary padding.
|
void |
closeEntry()
Close the current entry in the tar file.
|
void |
putNextEntry(TarEntry e)
Adds an entry for a new file in the tar archive.
|
void |
write(byte[] b,
int off,
int len)
Writes data for the current file into the archive.
|
public TarOutputStream(java.io.OutputStream out)
out
- the stream to write topublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterOutputStream
java.io.IOException
public void closeEntry() throws java.io.IOException
java.io.IOException
public void putNextEntry(TarEntry e) throws java.io.IOException
e
- TarEntry describing the filejava.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException