src/share/classes/java/util/zip/GZIPOutputStream.java

Print this page

        

*** 59,70 **** * the 3-argument constructor GZIPOutputStream(out, size, false). * * @param out the output stream * @param size the output buffer size * @exception IOException If an I/O error has occurred. ! * @exception IllegalArgumentException if size is <= 0 ! */ public GZIPOutputStream(OutputStream out, int size) throws IOException { this(out, size, false); } --- 59,69 ---- * the 3-argument constructor GZIPOutputStream(out, size, false). * * @param out the output stream * @param size the output buffer size * @exception IOException If an I/O error has occurred. ! * @exception IllegalArgumentException if {@code size <= 0} */ public GZIPOutputStream(OutputStream out, int size) throws IOException { this(out, size, false); }
*** 79,89 **** * {@link DeflaterOutputStream#flush() flush()} method of * this instance flushes the compressor with flush mode * {@link Deflater#SYNC_FLUSH} before flushing the output * stream, otherwise only flushes the output stream * @exception IOException If an I/O error has occurred. ! * @exception IllegalArgumentException if size is <= 0 * * @since 1.7 */ public GZIPOutputStream(OutputStream out, int size, boolean syncFlush) throws IOException --- 78,88 ---- * {@link DeflaterOutputStream#flush() flush()} method of * this instance flushes the compressor with flush mode * {@link Deflater#SYNC_FLUSH} before flushing the output * stream, otherwise only flushes the output stream * @exception IOException If an I/O error has occurred. ! * @exception IllegalArgumentException if {@code size <= 0} * * @since 1.7 */ public GZIPOutputStream(OutputStream out, int size, boolean syncFlush) throws IOException