de.schlichtherle.io.archive.tar
Class TarOutputArchive.EntryOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
de.schlichtherle.io.archive.tar.TarOutputArchive.EntryOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
- Enclosing class:
- TarOutputArchive
private class TarOutputArchive.EntryOutputStream
- extends FilterOutputStream
This entry output stream writes directly to our subclass.
It can only be used if this output stream is not currently busy
writing another entry and the entry holds enough information to
write the entry header.
These preconditions are checked by TarOutputArchive.getOutputStream(de.schlichtherle.io.archive.spi.ArchiveEntry, de.schlichtherle.io.archive.spi.ArchiveEntry).
|
Field Summary |
private boolean |
closed
|
|
Method Summary |
void |
close()
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
closed
private boolean closed
TarOutputArchive.EntryOutputStream
private TarOutputArchive.EntryOutputStream(TarEntry entry)
throws IOException
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write in class FilterOutputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class FilterOutputStream
- Throws:
IOException
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.