equal
deleted
inserted
replaced
183 * buffer array of length <code>size</code> |
183 * buffer array of length <code>size</code> |
184 * is created and stored in <code>buf</code>. |
184 * is created and stored in <code>buf</code>. |
185 * |
185 * |
186 * @param in the underlying input stream. |
186 * @param in the underlying input stream. |
187 * @param size the buffer size. |
187 * @param size the buffer size. |
188 * @exception IllegalArgumentException if size <= 0. |
188 * @exception IllegalArgumentException if {@code size <= 0}. |
189 */ |
189 */ |
190 public BufferedInputStream(InputStream in, int size) { |
190 public BufferedInputStream(InputStream in, int size) { |
191 super(in); |
191 super(in); |
192 if (size <= 0) { |
192 if (size <= 0) { |
193 throw new IllegalArgumentException("Buffer size <= 0"); |
193 throw new IllegalArgumentException("Buffer size <= 0"); |