1 @deftypemethod Adler32 {public void} reset ()
2 Resets the Adler32 data checksum as if no update was ever called.
4 @deftypemethod Adler32 {public void} update (int@w{ }@var{bval})
5 Adds one byte to the data checksum.
7 @deftypemethod Adler32 {public void} update (byte[]@w{ }@var{buffer})
8 Adds the complete byte array to the data checksum.
10 @deftypemethod Adler32 {public void} update (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len})
11 Adds the byte array to the data checksum.
13 @deftypemethod Adler32 {public long} getValue ()
14 Returns the Adler32 data checksum computed so far.
16 @deftypemethod CheckedInputStream {public Checksum} getChecksum ()
17 Returns the Checksum object used. To get the data checksum computed so
18 far call @code{getChecksum.getValue()}.
20 @deftypemethod CheckedInputStream {public int} read () @*throws IOException
21 Reads one byte, updates the checksum and returns the read byte
22 (or -1 when the end of file was reached).
24 @deftypemethod CheckedInputStream {public int} read (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len}) @*throws IOException
25 Reads at most len bytes in the supplied buffer and updates the checksum
26 with it. Returns the number of bytes actually read or -1 when the end
29 @deftypemethod CheckedInputStream {public long} skip (long@w{ }@var{n}) @*throws IOException
30 Skips n bytes by reading them in a temporary buffer and updating the
31 the checksum with that buffer. Returns the actual number of bytes skiped
32 which can be less then requested when the end of file is reached.
34 @deftypemethod CheckedOutputStream {public Checksum} getChecksum ()
35 Returns the Checksum object used. To get the data checksum computed so
36 far call @code{getChecksum.getValue()}.
38 @deftypemethod CheckedOutputStream {public void} write (int@w{ }@var{bval}) @*throws IOException
39 Writes one byte to the OutputStream and updates the Checksum.
41 @deftypemethod CheckedOutputStream {public void} write (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len}) @*throws IOException
42 Writes the byte array to the OutputStream and updates the Checksum.
44 @deftypemethod Checksum {public long} getValue ()
45 Returns the data checksum computed so far.
47 @deftypemethod Checksum {public void} reset ()
48 Resets the data checksum as if no update was ever called.
50 @deftypemethod Checksum {public void} update (int@w{ }@var{bval})
51 Adds one byte to the data checksum.
53 @deftypemethod Checksum {public void} update (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len})
54 Adds the byte array to the data checksum.
56 @deftypemethod CRC32 {public long} getValue ()
57 Returns the CRC32 data checksum computed so far.
59 @deftypemethod CRC32 {public void} reset ()
60 Resets the CRC32 data checksum as if no update was ever called.
62 @deftypemethod CRC32 {public void} update (int@w{ }@var{bval})
65 @deftypemethod CRC32 {public void} update (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len})
66 Adds the byte array to the data checksum.
68 @deftypemethod CRC32 {public void} update (byte[]@w{ }@var{buf})
69 Adds the complete byte array to the data checksum.
71 @deftypemethod Deflater {public int} deflate (byte[]@w{ }@var{buf})
74 @deftypemethod Deflater {public native int} deflate (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len})
77 @deftypemethod Deflater {public native void} end ()
80 @deftypemethod Deflater {protected void} finalize ()
83 @deftypemethod Deflater {public native void} finish ()
86 @deftypemethod Deflater {public synchronized boolean} finished ()
89 @deftypemethod Deflater {public native int} getAdler ()
92 @deftypemethod Deflater {public native int} getTotalIn ()
95 @deftypemethod Deflater {public native int} getTotalOut ()
98 @deftypemethod Deflater {public native boolean} needsInput ()
101 @deftypemethod Deflater {public native void} reset ()
104 @deftypemethod Deflater {public void} setDictionary (byte[]@w{ }@var{buf})
107 @deftypemethod Deflater {public native void} setDictionary (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len})
110 @deftypemethod Deflater {public void} setInput (byte[]@w{ }@var{buf})
113 @deftypemethod Deflater {public native void} setInput (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len})
116 @deftypemethod Deflater {public synchronized void} setLevel (int@w{ }@var{lvl})
119 @deftypemethod Deflater {public synchronized void} setStrategy (int@w{ }@var{stgy})
122 @deftypemethod DeflaterOutputStream {public void} close () @*throws IOException
125 @deftypemethod DeflaterOutputStream {protected void} deflate () @*throws IOException
128 @deftypemethod DeflaterOutputStream {public void} finish () @*throws IOException
131 @deftypemethod DeflaterOutputStream {public void} write (int@w{ }@var{bval}) @*throws IOException
134 @deftypemethod DeflaterOutputStream {public void} write (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len}) @*throws IOException
137 @deftypemethod GZIPInputStream {public void} close () @*throws IOException
140 @deftypemethod GZIPInputStream {public int} read (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len}) @*throws IOException
143 @deftypemethod GZIPOutputStream {public void} close () @*throws IOException
146 @deftypemethod GZIPOutputStream {public void} finish () @*throws IOException
149 @deftypemethod GZIPOutputStream {public synchronized void} write (byte[]@w{ }@var{buf}) @*throws IOException
152 @deftypemethod GZIPOutputStream {public synchronized void} write (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len}) @*throws IOException
155 @deftypemethod InflaterInputStream {protected void} fill () @*throws IOException
158 @deftypemethod InflaterInputStream {public int} read () @*throws IOException
161 @deftypemethod InflaterInputStream {public int} read (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len}) @*throws IOException
164 @deftypemethod InflaterInputStream {public void} close () @*throws IOException
167 @deftypemethod InflaterInputStream {public int} available () @*throws IOException
170 @deftypemethod InflaterInputStream {public long} skip (long@w{ }@var{n}) @*throws IOException
173 @deftypemethod Inflater {public native void} end ()
176 @deftypemethod Inflater {protected void} finalize ()
179 @deftypemethod Inflater {public synchronized boolean} finished ()
182 @deftypemethod Inflater {public native int} getAdler ()
185 @deftypemethod Inflater {public native int} getRemaining ()
188 @deftypemethod Inflater {public native int} getTotalIn ()
191 @deftypemethod Inflater {public native int} getTotalOut ()
194 @deftypemethod Inflater {public int} inflate (byte[]@w{ }@var{buf}) @*throws DataFormatException
197 @deftypemethod Inflater {public native int} inflate (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len}) @*throws DataFormatException
200 @deftypemethod Inflater {public synchronized boolean} needsDictionary ()
203 @deftypemethod Inflater {public synchronized boolean} needsInput ()
206 @deftypemethod Inflater {public native void} reset ()
209 @deftypemethod Inflater {public void} setDictionary (byte[]@w{ }@var{buf})
212 @deftypemethod Inflater {public native void} setDictionary (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len})
215 @deftypemethod Inflater {public void} setInput (byte[]@w{ }@var{buf})
218 @deftypemethod Inflater {public native void} setInput (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len})
221 @deftypemethod ZipEntry {public Object} clone ()
222 Creates a clone of this ZipEntry. Calls @code{new ZipEntry (this)}
223 and creates a clone of the contents of the extra byte array field.
225 @deftypemethod ZipEntry {public String} getComment ()
228 @deftypemethod ZipEntry {public long} getCompressedSize ()
231 @deftypemethod ZipEntry {public long} getCrc ()
234 @deftypemethod ZipEntry {public byte} getExtra ()
237 @deftypemethod ZipEntry {public int} getMethod ()
240 @deftypemethod ZipEntry {public String} getName ()
243 @deftypemethod ZipEntry {public long} getSize ()
246 @deftypemethod ZipEntry {public long} getTime ()
249 @deftypemethod ZipEntry {public boolean} isDirectory ()
252 @deftypemethod ZipEntry {public void} setComment (java.lang.String@w{ }@var{comment})
255 @deftypemethod ZipEntry {public void} setCompressedSize (long@w{ }@var{compressedSize})
256 Sets the compressedSize of this ZipEntry.
257 The new size must be between 0 and 0xffffffffL.
259 @deftypemethod ZipEntry {public void} setCrc (long@w{ }@var{crc})
262 @deftypemethod ZipEntry {public void} setExtra (byte[]@w{ }@var{extra})
265 @deftypemethod ZipEntry {public void} setMethod (int@w{ }@var{method})
268 @deftypemethod ZipEntry {public void} setSize (long@w{ }@var{size})
271 @deftypemethod ZipEntry {public void} setTime (long@w{ }@var{time})
274 @deftypemethod ZipEntry {public String} toString ()
277 @deftypemethod ZipEntry {public int} hashCode ()
278 Returns the hashcode of the name of this ZipEntry.
280 @deftypemethod ZipFile {public Enumeration} entries ()
283 @deftypemethod ZipFile {public void} close () @*throws IOException
286 @deftypemethod ZipFile {public ZipEntry} getEntry (java.lang.String@w{ }@var{name})
289 @deftypemethod ZipFile {public InputStream} getInputStream (java.util.zip.ZipEntry@w{ }@var{ze}) @*throws IOException
292 @deftypemethod ZipFile {public String} getName ()
295 @deftypemethod ZipFile {public int} size ()
296 Returns the number of entries in this ZipFile.
298 @deftypemethod ZipFile {protected void} finalize () @*throws IOException
301 @deftypemethod ZipInputStream {public ZipEntry} getNextEntry () @*throws IOException
304 @deftypemethod ZipInputStream {protected void} fill () @*throws IOException
307 @deftypemethod ZipInputStream {protected ZipEntry} createZipEntry (java.lang.String@w{ }@var{name})
308 Creates a new ZipEntry with the given name.
309 Used by ZipInputStream when normally @code{new ZipEntry (name)}
310 would be called. This gives subclasses such as JarInputStream a change
311 to override this method and add aditional information to the ZipEntry
314 @deftypemethod ZipInputStream {public int} read (byte[]@w{ }@var{b}, int@w{ }@var{off}, int@w{ }@var{len}) @*throws IOException
317 @deftypemethod ZipInputStream {public long} skip (long@w{ }@var{n}) @*throws IOException
320 @deftypemethod ZipInputStream {public int} available ()
321 Returns 0 if the ZipInputStream is closed and 1 otherwise.
323 @deftypemethod ZipInputStream {public void} closeEntry () @*throws IOException
326 @deftypemethod ZipInputStream {public void} close () @*throws IOException
327 Closes this InflaterInputStream.
329 @deftypemethod ZipOutputStream {public void} close () @*throws IOException
332 @deftypemethod ZipOutputStream {public void} closeEntry () @*throws IOException
335 @deftypemethod ZipOutputStream {public void} finish () @*throws IOException
338 @deftypemethod ZipOutputStream {public void} putNextEntry (java.util.zip.ZipEntry@w{ }@var{entry}) @*throws IOException
341 @deftypemethod ZipOutputStream {public void} setLevel (int@w{ }@var{level})
344 @deftypemethod ZipOutputStream {public void} setMethod (int@w{ }@var{method})
347 @deftypemethod ZipOutputStream {public void} setComment (java.lang.String@w{ }@var{comment})
350 @deftypemethod ZipOutputStream {public synchronized void} write (byte[]@w{ }@var{buf}, int@w{ }@var{off}, int@w{ }@var{len}) @*throws IOException