|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packagejava.util.zip
as colored differences. Deletions are shownlike 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.
A class that can be used to compute the Adler-32 checksum of a data stream. An Adler-32 checksum is almost as reliable as a CRC-32 but can be computed much faster. @see Checksum @version 1.Class Adler32, void update(int)19 0722 02/2402/9800 @author David Connelly
Updates checksum with specified byte. @param b an array of bytes
A class that can be used to compute the CRC-32 of a data stream. @see Checksum @version 1.Class CRC32, void update(byte[])21 0424 02/2202/9900 @author David Connelly
Updates checksum with specified array of bytes. @param the array of bytes to update the checksum with
An input stream that also maintains a checksum of the data being read. The checksum can then be used to verify the integrity of the input data. @see Checksum @version 1.Class CheckedInputStream, Checksum getChecksum()13 0916 02/2102/9800 @author David Connelly
Returns the Checksum for this input stream. @return the Checksum value
An output stream that also maintains a checksum of the data being written. The checksum can then be used to verify the integrity of the output data. @see Checksum @version 1.Class CheckedOutputStream, Checksum getChecksum()12 0915 02/2102/9800 @author David Connelly
Returns the Checksum for this output stream. @return the ChecksumClass CheckedOutputStream, void write(byte[], int, int)
Writes an array of bytes. Will block until the bytes are actually written. @parambufb the data to be written @param off the start offset of the data @param len the number of bytes to be written @exception IOException if an I/O error has occurred
An interface representing a data checksum. @version 1.Class Checksum, long getValue()10 0913 02/2102/9800 @author David Connelly
Returns the current checksum value. @return the current checksum valueClass Checksum, void update(byte[], int, int)
Updates the current checksum with the specified array of bytes. @param b the byte array to update the checksum with @param off the start offset of the data @param len the number of bytes to use for the updateClass Checksum, void update(int)
Updates the current checksum with the specified byte. @param b the byte to update the checksum with
Signals that a data format error has occurred. @version 1.8 0910 02/2102/9800 @author David Connelly
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. @see Inflater @version 1.Class Deflater, boolean finished()31 1034 02/2902/9800 @author David Connelly
Returns true if the end of the compressed data output stream has been reached. @return true if the end of the compressed data output stream has been reachedClass Deflater, int getAdler()
Returns the ADLER-32 value of the uncompressed data. @return the ADLER-32 value of the uncompressed dataClass Deflater, int getTotalIn()
Returns the total number of bytes input so far. @return the total number of bytes input so farClass Deflater, int getTotalOut()
Returns the total number of bytes output so far. @return the total number of bytes output so farClass Deflater, boolean needsInput()
Returns true if the input data buffer is empty and setInput() should be called in order to provide more input. @return true if the input data buffer is empty and setInput() should be called in order to provide more input
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.Class DeflaterOutputStream, constructor DeflaterOutputStream(OutputStream)23 0927 02/2102/9800 @author David Connelly
Creates a new output stream with a defaul compressor and buffer size. @param out the output streamClass DeflaterOutputStream, constructor DeflaterOutputStream(OutputStream, Deflater, int)
Creates a new output stream with the specified compressor and buffer size. @param out the output stream @param def the compressor ("deflater") @paramClass DeflaterOutputStream, void deflate()lensize the output buffer size @exception IllegalArgumentException if size is < 0
Writes next block of compressed data to the output stream. @throws IOException if an I/O error has occurredClass DeflaterOutputStream, void write(byte[], int, int)
Writes an array of bytes to the compressed output stream. This method will block until all the bytes are written. @parambufb the data to be written @param off the start offset of the data @param len the length of the data @exception IOException if an I/O error has occurred
This class implements a stream filter for reading compressed data in the GZIP format. @see InflaterInputStream @version 1.20 0922 02/2102/9800 @author David Connelly
This class implements a stream filter for writing compressed data in the GZIP file format. @version 1.15 0917 02/2102/9800 @author David Connelly
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. @see Deflater @version 1.Class Inflater, boolean finished()31 1035 02/2902/9800 @author David Connelly
Return true if the end of the compressed data stream has been reached. @return true if the end of the compressed data stream has been reachedClass Inflater, int getAdler()
Returns the ADLER-32 value of the uncompressed data. @return the ADLER-32 value of the uncompressed dataClass Inflater, int getRemaining()
Returns the total number of bytes remaining in the input buffer. This can be used to find out what bytes still remain in the input buffer after decompression has finished. @return the total number of bytes remaining in the input bufferClass Inflater, int getTotalIn()
Returns the total number of bytes input so far. @return the total number of bytes input so farClass Inflater, int getTotalOut()
Returns the total number of bytes output so far. @return the total number of bytes output so farClass Inflater, boolean needsDictionary()
Returns true if a preset dictionary is needed for decompression. @return true if a preset dictionary is needed for decompression @seeClass Inflater, boolean needsInput()InflatesetDictionaryInflater#setDictionary
Returns true if no data remains in the input buffer. This can be used to determine if #setInput should be called in order to provide more input. @return true if no data remains in the input buffer
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.Class InflaterInputStream, constructor InflaterInputStream(InputStream)23 0728 02/2802/9800 @author David Connelly
Creates a new input stream with a default decompressor and buffer size. @param in the input stream
This class is used to represent a ZIP file entry. @version 1.Class ZipEntry, constructor ZipEntry(ZipEntry)26 0631 02/2902/9800 @author David Connelly
Creates a new zip entry with fields taken from the specified zip entry. @param e a zip Entry objectClass ZipEntry, String getComment()
Returns the comment string for the entry or null if none. @return the comment string for the entry or null if none @see #setComment(String)Class ZipEntry, long getCompressedSize()
Returns the size of the compressed entry data or -1 if not known. In the case of a stored entry the compressed size will be the same as the uncompressed size of the entry. @return the size of the compressed entry data or -1 if not known @see #setCompressedSize(long)Class ZipEntry, long getCrc()
Returns the CRC-32 checksum of the uncompressed entry data or -1 if not known. @return the CRC-32 checksum of the uncompressed entry data or -1 if not known @see #getCrc()Class ZipEntry, byte[] getExtra()
Returns the extra field data for the entry or null if none. @return the extra field data for the entry or null if none @see #setExtra(byte[])Class ZipEntry, int getMethod()
Returns the compression method of the entry or -1 if not specified. @return the compression method of the entry or -1 if not specified @see #setMethod(int)Class ZipEntry, String getName()
Returns the name of the entry. @return the name of the entryClass ZipEntry, long getSize()
Returns the uncompressed size of the entry data or -1 if not known. @return the uncompressed size of the entry data or -1 if not known @see #setSize(long)Class ZipEntry, long getTime()
Returns the modification time of the entry or -1 if not specified. @return the modification time of the entry or -1 if not specified @see #setTime(long)Class ZipEntry, boolean isDirectory()
Returns true if this is a directory entry. A directory entry is defined to be one whose name ends with a '/'. @return true if this is a directory entryClass ZipEntry, void setComment(String)
Sets the optional comment string for the entry. @param comment the comment string @exception IllegalArgumentException if the length of the specified comment string is greater than 0xFFFF bytes @see #getComment()Class ZipEntry, void setCompressedSize(long)
Sets the size of the compressed entry data. @param csize the compressed size to set to @see #getCompressedSize()Class ZipEntry, void setCrc(long)
Sets the CRC-32 checksum of the uncompressed entry data. @param crc the CRC-32 value @exception IllegalArgumentException if the specified CRC-32 value is less than 0 or greater than 0xFFFFFFFF @see #setCrc(long)Class ZipEntry, void setExtra(byte[])
Sets the optional extra field data for the entry. @param extra the extra field data bytes @exception IllegalArgumentException if the length of the specified extra field data is greater than 0xFFFFF bytes @see #getExtra()Class ZipEntry, void setMethod(int)
Sets the compression method for the entry. @param method the compression method either STORED or DEFLATED @exception IllegalArgumentException if the specified compression method is invalid @see #getMethod()Class ZipEntry, void setSize(long)
Sets the uncompressed size of the entry data. @param size the uncompressed size in bytes @exception IllegalArgumentException if the specified size is less than 0 or greater than 0xFFFFFFFF bytes @see #getSize()Class ZipEntry, void setTime(long)
Sets the modification time of the entry. @param time the entry modification time in number of milliseconds since the epoch @see #getTime()
This class is used to read entries from a zip file. @version 1.Class ZipFile, void close()39 0448 02/2202/9900 @author David Connelly
Closes the ZIP file. @throws IOException if an I/O error has occuredClass ZipFile, Enumeration entries()
Returns an enumeration of the ZIP file entries. @return an enumeration of the ZIP file entries @exception IllegalStateException if the zip file has been closedClass ZipFile, void finalize()
Class ZipFile, InputStream getInputStream(ZipEntry)CalledEnsuresby the garbage collector on an object when garbage collection determinesthatthere are no more references to the object. A subclass overridesthemethod
finalizecloseto dispose of system resources or to perform other cleanup. The general contractoffinalize isthisthat itZIP file isinvoked if andcalled whenthe JavaTM virtual machine has determined thatthereisare nolonger any means by which this object can be accessed by any thread that has not yet died except as a result of an action taken by the finalization of some other object or class which ismorereadyreferences tobe finalizedit.The finalize
method may take any action including makingSince the time when GC would invoke thisobject available again to other threads; the usual purpose of finalize howevermethod isto perform cleanup actionsundeterminedbefore the objectit isirrevocably discarded. For example the finalize method for anstronglyobjectrecommanded thatrepresents an input/output connection might perform explicit I/O transactions to breakapplicationsthe connection beforeinvoke theobject is permanently discarded. The finalizeclose
methodof class Object performs no special action; it simply returns normally.asSubclasses ofsoon theyObjecthavemay overridefinished accessing thisdefinition. The Java programming language does not guarantee which thread will invoke the finalize method for any given objectZipFile
.ItThisis guaranteed however that the thread that invokes finalizewillnotpreventbeholdingany user-visible synchronization locks when finalizeupissysteminvoked.resourcesIffor anuncaught exception is thrown by the finalize method the exceptionundeterminedis ignored and finalizationlength ofthat object terminatestime.After the finalize method has been@exceptioninvoked forIOException if anobject no further action is taken until the Java virtual machine has again determined that there is no longer any means by which this object can be accessed by any thread that has not yet died including possible actions by other objects or classes which are ready to be finalized at which point the object mayI/Obe discardederror occurs.The finalize@seemethod is never invoked more than once by a Java virtual machine for any given objectjava.Any exception thrown by the finalize method causes the finalization of this object to be halted but is otherwise ignoredutil.zip.ZipFile#close()
Returns an input stream for reading the contents of the specified zip file entry. @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 closedClass ZipFile, String getName()
Returns the path name of the ZIP file. @return the path name of the ZIP fileClass ZipFile, int size()
Returns the number of entries in the ZIP file. @return the number of entries in the ZIP file @exception IllegalStateException if the zip file has been closed
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.Class ZipInputStream, ZipEntry createZipEntry(String)23 0428 02/2202/9900
Creates a new ZipEntry
object for the specified entry name. @param name the ZIP file entry name @return the ZipEntry just created
Class ZipInputStream, ZipEntry getNextEntry()Reads the next ZIP file entry and positions stream at the beginning of the entry data. @return the ZipEntry just read @exception ZipException if a ZIP file error has occurred @exception IOException if an I/O error has occurred
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.18 0721 02/0702/9800