/** * Deflates data (previously passed to {@link #setInput setInput}) into a specific * region within the supplied buffer. * * @return the number of bytes of compressed data written to {@code buf}. */ public synchronized int deflate(byte[] buf, int offset, int byteCount) { return deflateImpl(buf, offset, byteCount, flushParm); }
/** * Deflates data (previously passed to {@link #setInput setInput}) into a specific * region within the supplied buffer, optionally flushing the input buffer. * * @param flush one of {@link #NO_FLUSH}, {@link #SYNC_FLUSH} or {@link #FULL_FLUSH}. * @return the number of compressed bytes written to {@code buf}. If this * equals {@code byteCount}, the number of bytes of input to be flushed * may have exceeded the output buffer's capacity. In this case, * finishing a flush will require the output buffer to be drained * and additional calls to {@link #deflate} to be made. * @throws IllegalArgumentException if {@code flush} is invalid. * @since 1.7 */ public synchronized int deflate(byte[] buf, int offset, int byteCount, int flush) { if (flush != NO_FLUSH && flush != SYNC_FLUSH && flush != FULL_FLUSH) { throw new IllegalArgumentException("Bad flush value: " + flush); } return deflateImpl(buf, offset, byteCount, flush); }
private native int deflateImpl(byte[] buf, int offset, int byteCount, long handle, int flushParm);
/** * Deflates data (previously passed to {@link #setInput setInput}) into a specific * region within the supplied buffer. * * @return the number of bytes of compressed data written to {@code buf}. */ public synchronized int deflate(byte[] buf, int offset, int byteCount) { return deflateImpl(buf, offset, byteCount, flushParm); }
/** * Deflates data (previously passed to {@link #setInput setInput}) into a specific * region within the supplied buffer. * * @return the number of bytes of compressed data written to {@code buf}. */ public synchronized int deflate(byte[] buf, int offset, int byteCount) { return deflateImpl(buf, offset, byteCount, flushParm); }
/** * Deflates data (previously passed to {@link #setInput setInput}) into a specific * region within the supplied buffer. * * @return the number of bytes of compressed data written to {@code buf}. */ public synchronized int deflate(byte[] buf, int offset, int byteCount) { return deflateImpl(buf, offset, byteCount, flushParm); }
/** * Deflates data (previously passed to {@link #setInput setInput}) into a specific * region within the supplied buffer. * * @return the number of bytes of compressed data written to {@code buf}. */ public synchronized int deflate(byte[] buf, int offset, int byteCount) { return deflateImpl(buf, offset, byteCount, flushParm); }
/** * Deflates data (previously passed to {@link #setInput setInput}) into a specific * region within the supplied buffer. * * @return the number of bytes of compressed data written to {@code buf}. */ public synchronized int deflate(byte[] buf, int offset, int byteCount) { return deflateImpl(buf, offset, byteCount, flushParm); }
/** * Deflates data (previously passed to {@link #setInput setInput}) into a specific * region within the supplied buffer. * * @return the number of bytes of compressed data written to {@code buf}. */ public synchronized int deflate(byte[] buf, int offset, int byteCount) { return deflateImpl(buf, offset, byteCount, flushParm); }
public synchronized int deflate(byte[] buf, int offset, int byteCount, int flush) { return deflateImpl(buf, offset, byteCount, flush); }
public synchronized int deflate(byte[] buf, int offset, int byteCount) { return deflateImpl(buf, offset, byteCount, flushParm); }
/** * Deflates data (previously passed to {@link #setInput setInput}) into a specific * region within the supplied buffer, optionally flushing the input buffer. * * @param flush one of {@link #NO_FLUSH}, {@link #SYNC_FLUSH} or {@link #FULL_FLUSH}. * @return the number of compressed bytes written to {@code buf}. If this * equals {@code byteCount}, the number of bytes of input to be flushed * may have exceeded the output buffer's capacity. In this case, * finishing a flush will require the output buffer to be drained * and additional calls to {@link #deflate} to be made. * @throws IllegalArgumentException if {@code flush} is invalid. * @since 1.7 */ public synchronized int deflate(byte[] buf, int offset, int byteCount, int flush) { if (flush != NO_FLUSH && flush != SYNC_FLUSH && flush != FULL_FLUSH) { throw new IllegalArgumentException("Bad flush value: " + flush); } return deflateImpl(buf, offset, byteCount, flush); }
/** * Deflates data (previously passed to {@link #setInput setInput}) into a specific * region within the supplied buffer, optionally flushing the input buffer. * * @param flush one of {@link #NO_FLUSH}, {@link #SYNC_FLUSH} or {@link #FULL_FLUSH}. * @return the number of compressed bytes written to {@code buf}. If this * equals {@code byteCount}, the number of bytes of input to be flushed * may have exceeded the output buffer's capacity. In this case, * finishing a flush will require the output buffer to be drained * and additional calls to {@link #deflate} to be made. * @throws IllegalArgumentException if {@code flush} is invalid. * @since 1.7 */ public synchronized int deflate(byte[] buf, int offset, int byteCount, int flush) { if (flush != NO_FLUSH && flush != SYNC_FLUSH && flush != FULL_FLUSH) { throw new IllegalArgumentException("Bad flush value: " + flush); } return deflateImpl(buf, offset, byteCount, flush); }
/** * Deflates data (previously passed to {@link #setInput setInput}) into a specific * region within the supplied buffer, optionally flushing the input buffer. * * @param flush one of {@link #NO_FLUSH}, {@link #SYNC_FLUSH} or {@link #FULL_FLUSH}. * @return the number of compressed bytes written to {@code buf}. If this * equals {@code byteCount}, the number of bytes of input to be flushed * may have exceeded the output buffer's capacity. In this case, * finishing a flush will require the output buffer to be drained * and additional calls to {@link #deflate} to be made. * @throws IllegalArgumentException if {@code flush} is invalid. * @since 1.7 */ public synchronized int deflate(byte[] buf, int offset, int byteCount, int flush) { if (flush != NO_FLUSH && flush != SYNC_FLUSH && flush != FULL_FLUSH) { throw new IllegalArgumentException("Bad flush value: " + flush); } return deflateImpl(buf, offset, byteCount, flush); }
private native int deflateImpl(byte[] buf, int offset, int byteCount, long handle, int flushParm);
private native int deflateImpl(byte[] buf, int offset, int byteCount, long handle, int flushParm);
private native int deflateImpl(byte[] buf, int offset, int byteCount, long handle, int flushParm);
private native int deflateImpl(byte[] buf, int offset, int byteCount, long handle, int flushParm);
private native int deflateImpl(byte[] buf, int offset, int byteCount, long handle, int flushParm);
private native int deflateImpl(byte[] buf, int offset, int byteCount, long handle, int flushParm);