| Home >> All >> java >> util >> [ zip Javadoc ] |
java.util.zip: Javadoc index of package java.util.zip.
Package Samples:
java.util.zip: Utility classes such as collections (maps, sets, lists, dictionaries and stacks), calendars, dates, locales, properties, timers, resource bundles and event objects.
Classes:
Adler32: Computes Adler32 checksum for a stream of data. An Adler32 checksum is not as reliable as a CRC32 checksum, but a lot faster to compute. The specification for Adler32 may be found in RFC 1950. (ZLIB Compressed Data Format Specification version 3.3) From that document: "ADLER32 (Adler-32 checksum) This contains a checksum value of the uncompressed data (excluding any dictionary data) computed according to Adler-32 algorithm. This algorithm is a 32-bit extension and improvement of the Fletcher algorithm, used in the ITU-T X.224 / ISO 8073 standard. Adler-32 is composed of two sums accumulated per ...
Inflater: Inflater is used to decompress data that has been compressed according to the "deflate" standard described in rfc1950. The usage is as following. First you have to set some input with setInput() , then inflate() it. If inflate doesn't inflate any bytes there may be three reasons: needsInput() returns true because the input buffer is empty. You have to provide more input with setInput() . NOTE: needsInput() also returns true when, the stream is finished. needsDictionary() returns true, you have to provide a preset dictionary with setDictionary() . finished() returns true, the inflater has finished. ...
StreamManipulator: This class allows us to retrieve a specified amount of bits from the input buffer, as well as copy big byte blocks. It uses an int buffer to store up to 31 bits for direct manipulation. This guarantees that we can get at least 16 bits, but we only need at most 15, so this is all safe. There are some optimizations in this class, for example, you must never peek more then 8 bits more than needed, and you must first peek bits before you may drop them. This is not a general purpose class but optimized for the behaviour of the Inflater.
DeflaterOutputStream: This is a special FilterOutputStream deflating the bytes that are written through it. It uses the Deflater for deflating. A special thing to be noted is that flush() doesn't flush everything in Sun's JDK, but it does so in jazzlib. This is because Sun's Deflater doesn't have a way to flush() everything, without finishing the stream.
Checksum: Interface to compute a data checksum used by checked input/output streams. A data checksum can be updated by one byte or with a byte array. After each update the value of the current checksum can be returned by calling getValue . The complete checksum object can also be reset so it can be used again with new data.
ZipOutputStream: This is a FilterOutputStream that writes the files into a zip archive one after another. It has a special method to start a new zip entry. The zip entries contains information about the file name size, compressed size, CRC, etc. It includes support for STORED and DEFLATED entries. This class is not thread safe.
Deflater: This is the Deflater class. The deflater class compresses input with the deflate algorithm described in RFC 1951. It has several compression levels and three different strategies described below. This class is not thread safe. This is inherent in the API, due to the split of deflate and setInput.
ZipInputStream: This is a FilterInputStream that reads the files in an zip archive one after another. It has a special method to get the zip entry of the next file. The zip entry contains information about the file name size, compressed size, CRC, etc. It includes support for STORED and DEFLATED entries.
ZipFile: This class represents a Zip archive. You can ask for the contained entries, or get an input stream for a file entry. The entry is automatically decompressed. This class is thread safe: You can open input streams for arbitrary entries in different threads.
ZipEntry: This class represents a member of a zip archive. ZipFile and ZipInputStream will give you instances of this class as information about the members in an archive. On the other hand ZipOutputStream needs an instance of this class to create a new member.
InflaterInputStream: This filter stream is used to decompress data compressed in the "deflate" format. The "deflate" format is described in RFC 1951. This stream may form the basis for other decompression filters, such as the GZIPInputStream .
CRC32: Computes CRC32 data checksum of a data stream. The actual CRC32 algorithm is described in RFC 1952 (GZIP file format specification version 4.3). Can be used to get the CRC32 over a stream if used with checked input/output streams.
DeflaterHuffman: This is the DeflaterHuffman class. This class is not thread safe. This is inherent in the API, due to the split of deflate and setInput.
OutputWindow: Contains the output from the Inflation process. We need to have a window so that we can refer backwards into the output stream to repeat stuff.
PendingBuffer: This class is general purpose class for writing data to a buffer. It allows you to write bits as well as bytes Based on DeflaterPending.java
GZIPOutputStream: This filter stream is used to compress a stream into a "GZIP" stream. The "GZIP" format is described in RFC 1952.
GZIPInputStream: This filter stream is used to decompress a "GZIP" format stream. The "GZIP" format is described in RFC 1952.
CheckedInputStream: InputStream that computes a checksum of the data being read using a supplied Checksum object.
CheckedOutputStream: OutputStream that computes a checksum of data being written using a supplied Checksum object.
DeflaterPending: This class stores the pending output of the Deflater.
ZipException: Thrown during the creation or input of a zip file.
DataFormatException: Exception thrown when compressed data is corrupt.
ZipConstants
| Home | Contact Us | Privacy Policy | Terms of Service |