Field Summary |
|
final protected static byte[] | CFH_SIG |
final protected static byte[] | DD_SIG |
final public static int | DEFAULT_COMPRESSION Default compression level for deflated entries. |
final public static int | DEFLATED Compression method for deflated entries. |
final protected static byte[] | EOCD_SIG |
final protected static byte[] | LFH_SIG |
final public static int | STORED Compression method for stored entries. |
protected byte[] | buf This buffer servers as a Deflater.
This attribute is only protected to provide a level of API
backwards compatibility. |
protected Deflater | def This Deflater object is used for output.
This attribute is only protected to provide a level of API
backwards compatibility. |
Method Summary |
|
protected static long | adjustToLong(int i) Assumes a negative integer really is a positive integer that
has wrapped around and re-creates the original value.
Parameters: i - the value to treat as unsigned int. |
public void | close() Closes this output stream and releases any system resources
associated with the stream. |
public void | closeEntry() Writes all necessary data for this entry. |
final protected void | deflate() Writes next block of compressed data to the output stream. |
public void | finish() Finishs writing the contents and closes this as well as the
underlying stream. |
public void | flush() Flushes this output stream and forces any buffered output bytes
to be written out to the stream. |
protected byte[] | getBytes(String name) Retrieve the bytes for the given String in the encoding set for
this Stream. |
public String | getEncoding() The encoding to use for filenames and the file comment. |
public boolean | isSeekable() This method indicates whether this archive is writing to a seekable stream (i.e., to a random
access file). |
public void | putNextEntry(ZipEntry ze) Begin writing next entry. |
public void | setComment(String comment) Set the file comment. |
public void | setEncoding(String encoding) The encoding to use for filenames and the file comment. |
public void | setLevel(int level) Sets the compression level for subsequent entries. |
public void | setMethod(int method) Sets the default compression method for subsequent entries. |
protected static ZipLong | toDosTime(Date time) Convert a Date object to a DOS date/time field. |
protected static byte[] | toDosTime(long t) Convert a Date object to a DOS date/time field. |
public void | write(byte[] b, int offset, int length) Writes bytes to ZIP entry. |
public void | write(int b) Writes a single byte to ZIP entry. |
protected void | writeCentralDirectoryEnd() Writes the "End of central dir record". |
protected void | writeCentralFileHeader(ZipEntry ze) Writes the central file header entry. |
protected void | writeDataDescriptor(ZipEntry ze) Writes the data descriptor entry. |
protected void | writeLocalFileHeader(ZipEntry ze) |
final protected void | writeOut(byte[] data) Write bytes to output or random access file. |
final protected void | writeOut(byte[] data, int offset, int length) Write bytes to output or random access file. |