public class CustomZipOutputStream extends OutputStream
OutputStream that will zip output. Note that, just as with ZipOutputStream, no implementation of this is thread-safe.| Modifier and Type | Class and Description |
|---|---|
protected static interface |
CustomZipOutputStream.Impl |
| Modifier | Constructor and Description |
|---|---|
protected |
CustomZipOutputStream(CustomZipOutputStream.Impl impl) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeEntry() |
void |
putNextEntry(ZipEntry entry) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b)
Writes the specified byte to this output stream.
|
void |
writeEntry(String name,
InputStream contents) |
flush, writeprotected CustomZipOutputStream(CustomZipOutputStream.Impl impl)
public final void putNextEntry(ZipEntry entry) throws IOException
IOExceptionpublic final void closeEntry()
throws IOException
IOExceptionpublic final void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
b. The
24 high-order bits of b are ignored.write in class OutputStreamb - the byte.IOException - if an I/O error occurs. In particular, an IOException may
be thrown if the output stream has been closed.public void writeEntry(String name, InputStream contents) throws IOException
IOExceptionpublic final void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOException