Stream header of deflated data:
| Modifier and Type | Field and Description |
|---|---|
| public static final int | MAGIC
Start of stream header for deflated data |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: number of deflated bytes written, not including the header.raw input bytes input, final int offset to inOff, final int inputnumber of inLen, final int input bytes at inOffcompression level 0-9 or level, final OutputStream Deflater#DEFAULT_COMPRESSIONsink for deflated bytes out)
|
| public static byte[] | Returns: the inflated bytes from the streamInputStream at start of stream header, i.e. position MAGIC.
|
| public static byte[] | Returns: the inflated bytes from the stream, passingoutput for chainingInputStream at start of deflated bytes, i.e. after the stream header.number of deflated bytes in stream inLen, final int innumber of inflated outLen, final byte[] output bytes at outOffsink for deflated bytes output, final int offset to outOff)output
|
| MAGIC | back to summary |
|---|---|
| public static final int MAGIC Start of stream header for deflated data | |
| CustomCompress | back to summary |
|---|---|
| public CustomCompress() | |
| deflateToStream | back to summary |
|---|---|
public static int deflateToStream(final byte[] input, final int inOff, final int inLen, final int level, final OutputStream out) throws IOException, ArrayIndexOutOfBoundsException, IllegalArgumentException
| |
| inflateFromStream | back to summary |
|---|---|
public static byte[] inflateFromStream(final InputStream in) throws IOException, ArrayIndexOutOfBoundsException, IllegalArgumentException
| |
| inflateFromStream | back to summary |
|---|---|
public static byte[] inflateFromStream(final InputStream in, final int inLen, final int outLen, final byte[] output, final int outOff) throws IOException, ArrayIndexOutOfBoundsException, IllegalArgumentException
| |