Deflater.deflate
Class Overview | Class Members |
This Package |
All Packages
public native synchronized int deflate( byte b[],
int off,
int len )
Parameters
- b
- the buffer for the compressed data
- off
- the start offset of the data
- len
- the maximum number of bytes of compressed data
Returns
the actual number of bytes of compressed data
Description
Fills specified buffer with compressed data. Returns actual number
of bytes of compressed data. A return value of 0 indicates that
needsInput() should be called in order to determine if more input
data is required.
public int deflate( byte b[] )
Parameters
- b
- the buffer for the compressed data
Returns
the actual number of bytes of compressed data
Description
Fills specified buffer with compressed data. Returns actual number
of bytes of compressed data. A return value of 0 indicates that
needsInput() should be called in order to determine if more input
data is required.