Example usage for Java java.util.zip ZipOutputStream fields, constructors, methods, implement or subclass
The text is from its open source code.
int | STORED Compression method for uncompressed (STORED) entries. |
int | DEFLATED Compression method for compressed (DEFLATED) entries. |
ZipOutputStream(OutputStream out) Creates a new ZIP output stream. | |
ZipOutputStream(OutputStream out, Charset charset) Creates a new ZIP output stream. |
void | close() Closes the ZIP output stream as well as the stream being filtered. |
void | closeEntry() Closes the current ZIP entry and positions the stream for writing the next entry. |
void | finish() Finishes writing the contents of the ZIP output stream without closing the underlying stream. |
void | flush() Flushes the compressed output stream. |
void | putNextEntry(ZipEntry e) Begins writing a new ZIP file entry and positions the stream to the start of the entry data. |
void | setComment(String comment) Sets the ZIP file comment. |
void | setLevel(int level) Sets the compression level for subsequent entries which are DEFLATED. |
void | setMethod(int method) Sets the default compression method for subsequent entries. |
void | write(byte[] b, int off, int len) Writes an array of bytes to the current ZIP entry data. |
void | write(int b) Writes a byte to the compressed output stream. |