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, write
protected CustomZipOutputStream(CustomZipOutputStream.Impl impl)
public final void putNextEntry(ZipEntry entry) throws IOException
IOException
public final void closeEntry() throws IOException
IOException
public final void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void write(int b) throws IOException
b
. The
24 high-order bits of b
are ignored.write
in class OutputStream
b
- 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
IOException
public final void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException