Fields
| Name | Description |
|---|---|
| DEFLATED | Compression method for compressed (DEFLATED) entries. |
| STORED | Compression method for uncompressed (STORED) entries. |
Constructors
| Name | Description |
|---|---|
| ZipOutputStream(OutputStream) | Creates a new ZIP output stream. |
Methods
| Name | Description |
|---|---|
| close() | Closes the ZIP output stream as well as the stream being filtered. |
| closeEntry() | Closes the current ZIP entry and positions the stream for writing the next entry. |
| finish() | Finishes writing the contents of the ZIP output stream without closing the underlying stream. |
| putNextEntry(ZipEntry) | Begins writing a new ZIP file entry and positions the stream to the start of the entry data. |
| setComment(String) | Sets the ZIP file comment. |
| setLevel(int) | Sets the compression level for subsequent entries which are DEFLATED. |
| setMethod(int) | Sets the default compression method for subsequent entries. |
| write(byte[], int, int) | Writes an array of bytes to the current ZIP entry data. |