Generated by
JDiff

java.util.zip Documentation Differences

This file contains all the changes in documentation in the package java.util.zip as colored differences. Deletions are shown like this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.

Class Deflater

This class provides support for general purpose compression using the popular ZLIB compression library. The ZLIB compression library was initially developed as part of the PNG graphics standard and is not protected by patents. It is fully described in the specifications at the java.util.zip package description.

The following code fragment demonstrates a trivial compression and decompression of a string using Deflater and Inflater.

 // Encode a String into bytes String inputString = "blahblahblah##"; byte[] input = inputString.getBytes("UTF-8"); // Compress the bytes byte[] output = new byte[100]; Deflater compresser = new Deflater(); compresser.setInput(input); compresser.finish(); int compressedDataLength = compresser.deflate(output); // Decompress the bytes Inflater decompresser = new Inflater(); decompresser.setInput(output 0 compressedDataLength); byte[] result = new byte[100]; int resultLength = decompresser.inflate(result); decompresser.end(); // Decode the bytes into a String String outputString = new String(result 0 resultLength "UTF-8"); 
@see Inflater @version 1.35 1236 02/0306/0102 @author David Connelly

Class DeflaterOutputStream

This class implements an output stream filter for compressing data in the "deflate" compression format. It is also used as the basis for other types of compression filters such as GZIPOutputStream. @see Deflater @version 1.30 1231 02/0306/0102 @author David Connelly

Class GZIPInputStream

This class implements a stream filter for reading compressed data in the GZIP format. @see InflaterInputStream @version 1.23 1224 02/0306/0102 @author David Connelly

Class GZIPOutputStream

This class implements a stream filter for writing compressed data in the GZIP file format. @version 1.19 1220 02/0306/0102 @author David Connelly

Class Inflater

This class provides support for general purpose decompression using popular ZLIB compression library. The ZLIB compression library was initially developed as part of the PNG graphics standard and is not protected by patents. It is fully described in the specifications at the java.util.zip package description.

The following code fragment demonstrates a trivial compression and decompression of a string using Deflater and Inflater.

 // Encode a String into bytes String inputString = "blahblahblah##"; byte[] input = inputString.getBytes("UTF-8"); // Compress the bytes byte[] output = new byte[100]; Deflater compresser = new Deflater(); compresser.setInput(input); compresser.finish(); int compressedDataLength = compresser.deflate(output); // Decompress the bytes Inflater decompresser = new Inflater(); decompresser.setInput(output 0 compressedDataLength); byte[] result = new byte[100]; int resultLength = decompresser.inflate(result); decompresser.end(); // Decode the bytes into a String String outputString = new String(result 0 resultLength "UTF-8"); 
@see Deflater @version 1.36 1237 02/0306/0102 @author David Connelly

Class InflaterInputStream

This class implements a stream filter for uncompressing data in the "deflate" compression format. It is also used as the basis for other decompression filters such as GZIPInputStream. @see Inflater @version 1.30 1231 02/0306/0102 @author David Connelly

Class ZipEntry

This class is used to represent a ZIP file entry. @version 1.34 02/0806/02 @author David Connelly

Class ZipFile

This class is used to read entries from a zip file. @version 1.54 1256 05/0329/0102 @author David Connelly
Class ZipFile, void close()

Closes the ZIP file.

Closing this ZIP file will close all of the input streams previously returned by invocations of the getInputStream method. @throws IOException if an I/O error has occured

Class ZipFile, InputStream getInputStream(ZipEntry)

Returns an input stream for reading the contents of the specified zip file entry. Returns an input stream for reading the contents of the specified zip file entry.

Closing this ZIP file will in turn close all input streams that have been returned by invocations of this method. @param entry the zip file entry @return the input stream for reading the contents of the specified zip file entry. @exception ZipException if a ZIP format error has occurred @exception IOException if an I/O error has occurred @exception IllegalStateException if the zip file has been closed


Class ZipInputStream

This class implements an input stream filter for reading files in the ZIP file format. Includes support for both compressed and uncompressed entries. @author David Connelly @version 1.29 1230 02/0306/0102

Class ZipOutputStream

This class implements an output stream filter for writing files in the ZIP file format. Includes support for both compressed and uncompressed entries. @author David Connelly @version 1.24 1225 02/0306/0102