| Modifier and Type | Field and Description |
|---|---|
| private static final BHSDCodec[] | canonicalCodec
The canonical encodings are defined to allow a single byte to represent one of the standard encodings. |
| private static Map | |
| private static final int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static BHSDCodec | |
| public static Codec | Returns: the corresponding codec, ornull if the default should be usedthe canonical encoding value value, final InputStream the input stream to read additional byte headers from in, final Codec TODO defaultCodec)Gets the codec specified by the given value byte and optional byte header. |
| public static int[] | |
| public static int |
| canonicalCodec | back to summary |
|---|---|
| private static final BHSDCodec[] canonicalCodec The canonical encodings are defined to allow a single byte to represent one of the standard encodings. The following values are defined in the Pack200 specification, and this array cannot be changed. | |
| canonicalCodecsToSpecifiers | back to summary |
|---|---|
| private static Map<BHSDCodec, Integer> canonicalCodecsToSpecifiers | |
| EMPTY_INT_ARRAY | back to summary |
|---|---|
| private static final int[] EMPTY_INT_ARRAY | |
| CodecEncoding | back to summary |
|---|---|
| public CodecEncoding() | |
| getCanonicalCodec | back to summary |
|---|---|
| public static BHSDCodec getCanonicalCodec(final int i) | |
| getCodec | back to summary |
|---|---|
| public static Codec getCodec(final int value, final InputStream in, final Codec defaultCodec) throws IOException, Pack200Exception Gets the codec specified by the given value byte and optional byte header. If the value is >= 116, then bytes may be consumed from the secondary input stream, which is taken to be the contents of the band_headers byte array. Since the values from this are consumed and not repeated, the input stream should be reused for subsequent encodings. This does not therefore close the input stream.
| |
| getSpecifier | back to summary |
|---|---|
| public static int[] getSpecifier(final Codec codec, final Codec defaultForBand) | |
| getSpecifierForDefaultCodec | back to summary |
|---|---|
| public static int getSpecifierForDefaultCodec(final BHSDCodec defaultCodec) | |