Constructors
- ✓public ZipInputStream(java.io.InputStream arg0)
- ✓public ZipInputStream(java.io.InputStream arg0, java.nio.charset.Charset arg1)
Methods
- ✓public int available() throws java.io.IOException
- ✓public void close() throws java.io.IOException
- ✓public void closeEntry() throws java.io.IOException
- ✓protected java.util.zip.ZipEntry createZipEntry(java.lang.String arg0)
- ✓public java.util.zip.ZipEntry getNextEntry() throws java.io.IOException
- ✓public int read() throws java.io.IOException
- ✓public int read(byte[] arg0, int arg1, int arg2) throws java.io.IOException
- ✓public byte[] readAllBytes() throws java.io.IOException
- ✓public byte[] readNBytes(int arg0) throws java.io.IOException
- ✓public int readNBytes(byte[] arg0, int arg1, int arg2) throws java.io.IOException
- ✓public long skip(long arg0) throws java.io.IOException
- ✓public void skipNBytes(long arg0) throws java.io.IOException
- ✗public long transferTo(java.io.OutputStream arg0) throws java.io.IOExceptionComparing jdk-20-ga and jdk-21+35
transferTo
Reads all bytes from this input stream for the current ZIP entry and writes the bytes to the given output stream in the order that they are read. On return, this input stream will be at end of stream. This method does not close either stream.This method may block indefinitely reading from the input stream, or writing to the output stream. The behavior for the case where the input and/or output stream is asynchronously closed, or the thread interrupted during the transfer, is highly input and output stream specific, and therefore not specified.
If the total number of bytes transferred is greater than Long.MAX_VALUE, then
Long.MAX_VALUEwill be returned.If an I/O error occurs reading from the input stream or writing to the output stream, then it may do so after some bytes have been read or written. Consequently, the input stream may not be at end of stream and one, or both, streams may be in an inconsistent state. It is strongly recommended that both streams be promptly closed if an I/O error occurs.
- Overrides:
transferToin classInputStream- Parameters:
out- the output stream, non-null- Returns:
- the number of bytes transferred
- Throws:
NullPointerException- ifoutisnullIOException- if an I/O error occurs when reading or writing- Since:
- 9
Summary
| Elements | Comments | Descriptions | Total | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed | ||
| transferTo(OutputStream) | 4 | 4 | ||||||||
| Total | 4 | 4 | ||||||||