de.schlichtherle.io.archive.zip
Class ZipOutputArchive.EntryOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
de.schlichtherle.io.archive.zip.ZipOutputArchive.EntryOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
- Enclosing class:
- ZipOutputArchive
private class ZipOutputArchive.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 ZipOutputArchive.getOutputStream(de.schlichtherle.io.archive.spi.ArchiveEntry, de.schlichtherle.io.archive.spi.ArchiveEntry).
|
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 |
ZipOutputArchive.EntryOutputStream
private ZipOutputArchive.EntryOutputStream(ZipEntry entry)
throws IOException
- Throws:
IOException
ZipOutputArchive.EntryOutputStream
private ZipOutputArchive.EntryOutputStream(ZipEntry entry,
boolean deflate)
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.