INSTANCE.
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| public static final GzipStreamInterceptor |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | formatName()
Implements com. The name of the format the interceptor recognizes. |
| public boolean | isMatch(byte[]
the candidate byte sequence. candidate, int the offset into the candidate bytes to begin matching. offset, int the number of bytes (beginning at 'offset') in `candidate`. Must be greater than or equal to
length)numberOfBytesNeededToDetermineMatch().Implements com. Determines whether the given candidate byte sequence matches this format. |
| public InputStream | newInputStream(InputStream
the stream containing bytes in this format. interceptedStream)Implements com. Creates a new InputStream that transforms the bytes in the given InputStream into valid text or binary Ion. |
| public int | numberOfBytesNeededToDetermineMatch()
Implements com. The number of bytes required to be read from the beginning of the stream in order to determine whether it matches the format relevant to this interceptor. |
| public static GzipStreamInterceptor | |
| public static GzipStreamInterceptor[] |
| GZIP_HEADER | back to summary |
|---|---|
| private static final byte[] GZIP_HEADER | |
| INSTANCE | back to summary |
|---|---|
| public static final GzipStreamInterceptor INSTANCE | |
| GzipStreamInterceptor | back to summary |
|---|---|
| private GzipStreamInterceptor() | |
| formatName | back to summary |
|---|---|
| public String formatName() Implements com. Doc from com. The name of the format the interceptor recognizes. | |
| isMatch | back to summary |
|---|---|
| public boolean isMatch(byte[] candidate, int offset, int length) Implements com. Doc from com. Determines whether the given candidate byte sequence matches this format.
| |
| newInputStream | back to summary |
|---|---|
| public InputStream newInputStream(InputStream interceptedStream) throws IOException Implements com. Doc from com. Creates a new InputStream that transforms the bytes in the given InputStream into valid text or binary Ion.
| |
| numberOfBytesNeededToDetermineMatch | back to summary |
|---|---|
| public int numberOfBytesNeededToDetermineMatch() Implements com. Doc from com. The number of bytes required to be read from the beginning of the stream in order to determine whether
it matches the format relevant to this interceptor. If a stream contains fewer than the number of bytes
returned by this method, then this interceptor will not be considered a match and
| |
| valueOf | back to summary |
|---|---|
| public static GzipStreamInterceptor valueOf(String name) | |
| values | back to summary |
|---|---|
| public static GzipStreamInterceptor[] values() | |