org.eclipse.rse.services.clientserver.util.tar
Class TarOutputStream
java.lang.Object
java.io.OutputStream
org.eclipse.rse.services.clientserver.util.tar.TarOutputStream
- All Implemented Interfaces:
- ITarConstants
- public class TarOutputStream
- extends OutputStream
- implements ITarConstants
This class implements an output stream filter for writing files in the
tar file format.
| Fields inherited from interface org.eclipse.rse.services.clientserver.util.tar.ITarConstants |
BLOCK_SIZE, CHKSUM_LENGTH, DEVMAJOR_LENGTH, DEVMINOR_LENGTH, GID_LENGTH, GNAME_LENGTH, HEADER_LENGTH, LINKNAME_LENGTH, MAGIC_LENGTH, MODE_LENGTH, MTIME_LENGTH, NAME_LENGTH, PREFIX_LENGTH, SEPARATOR_CHAR, SIZE_LENGTH, TF_BLOCK, TF_CHAR, TF_CONTIGUOUS, TF_DIR, TF_FIFO, TF_LINK, TF_NORMAL, TF_OLDNORMAL, TF_SYMLINK, TYPEFLAG_LENGTH, UID_LENGTH, UNAME_LENGTH, VERSION_LENGTH |
|
Method Summary |
void |
close()
|
void |
closeEntry()
Closes the current tar entry, and positions the stream for writing the next entry. |
void |
putNextEntry(TarEntry entry)
Begins writing a new tar entry, and positions the stream to the start of the entry data.
|
void |
write(int b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TarOutputStream
public TarOutputStream(OutputStream out)
- Creates a new tar output stream.
- Parameters:
out - the actual output stream.
close
public void close()
throws IOException
- Throws:
IOException- See Also:
OutputStream.close()
write
public void write(int b)
throws IOException
- Throws:
IOException- See Also:
OutputStream.write(int)
putNextEntry
public void putNextEntry(TarEntry entry)
throws IOException
- Begins writing a new tar entry, and positions the stream to the start of the entry data.
Closes the current entry if still active.
- Throws:
IOException - if an I/O occurs.
closeEntry
public void closeEntry()
throws IOException
- Closes the current tar entry, and positions the stream for writing the next entry.
- Throws:
IOException - if an I/O error occurs.
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.