equal
deleted
inserted
replaced
95 * size. |
95 * size. |
96 * |
96 * |
97 * @param in input stream to read the uncompressed data to |
97 * @param in input stream to read the uncompressed data to |
98 * @param defl compressor ("deflater") for this stream |
98 * @param defl compressor ("deflater") for this stream |
99 * @param bufLen compression buffer size |
99 * @param bufLen compression buffer size |
100 * @throws IllegalArgumentException if {@code bufLen} is <= 0 |
100 * @throws IllegalArgumentException if {@code bufLen <= 0} |
101 * @throws NullPointerException if {@code in} or {@code defl} is null |
101 * @throws NullPointerException if {@code in} or {@code defl} is null |
102 */ |
102 */ |
103 public DeflaterInputStream(InputStream in, Deflater defl, int bufLen) { |
103 public DeflaterInputStream(InputStream in, Deflater defl, int bufLen) { |
104 super(in); |
104 super(in); |
105 |
105 |
161 * @param b buffer into which the data is read |
161 * @param b buffer into which the data is read |
162 * @param off starting offset of the data within {@code b} |
162 * @param off starting offset of the data within {@code b} |
163 * @param len maximum number of compressed bytes to read into {@code b} |
163 * @param len maximum number of compressed bytes to read into {@code b} |
164 * @return the actual number of bytes read, or -1 if the end of the |
164 * @return the actual number of bytes read, or -1 if the end of the |
165 * uncompressed input stream is reached |
165 * uncompressed input stream is reached |
166 * @throws IndexOutOfBoundsException if {@code len} > {@code b.length - |
166 * @throws IndexOutOfBoundsException if {@code len > b.length - off} |
167 * off} |
|
168 * @throws IOException if an I/O error occurs or if this input stream is |
167 * @throws IOException if an I/O error occurs or if this input stream is |
169 * already closed |
168 * already closed |
170 */ |
169 */ |
171 public int read(byte[] b, int off, int len) throws IOException { |
170 public int read(byte[] b, int off, int len) throws IOException { |
172 // Sanity checks |
171 // Sanity checks |