equal
deleted
inserted
replaced
73 * Creates a new input stream with the specified decompressor and |
73 * Creates a new input stream with the specified decompressor and |
74 * buffer size. |
74 * buffer size. |
75 * @param in the input stream |
75 * @param in the input stream |
76 * @param inf the decompressor ("inflater") |
76 * @param inf the decompressor ("inflater") |
77 * @param size the input buffer size |
77 * @param size the input buffer size |
78 * @exception IllegalArgumentException if size is <= 0 |
78 * @exception IllegalArgumentException if {@code size <= 0} |
79 */ |
79 */ |
80 public InflaterInputStream(InputStream in, Inflater inf, int size) { |
80 public InflaterInputStream(InputStream in, Inflater inf, int size) { |
81 super(in); |
81 super(in); |
82 if (in == null || inf == null) { |
82 if (in == null || inf == null) { |
83 throw new NullPointerException(); |
83 throw new NullPointerException(); |
189 /** |
189 /** |
190 * Skips specified number of bytes of uncompressed data. |
190 * Skips specified number of bytes of uncompressed data. |
191 * @param n the number of bytes to skip |
191 * @param n the number of bytes to skip |
192 * @return the actual number of bytes skipped. |
192 * @return the actual number of bytes skipped. |
193 * @exception IOException if an I/O error has occurred |
193 * @exception IOException if an I/O error has occurred |
194 * @exception IllegalArgumentException if n < 0 |
194 * @exception IllegalArgumentException if {@code n < 0} |
195 */ |
195 */ |
196 public long skip(long n) throws IOException { |
196 public long skip(long n) throws IOException { |
197 if (n < 0) { |
197 if (n < 0) { |
198 throw new IllegalArgumentException("negative skip length"); |
198 throw new IllegalArgumentException("negative skip length"); |
199 } |
199 } |