public class CodecEncoding extends Object
Constructor and Description |
---|
CodecEncoding() |
Modifier and Type | Method and Description |
---|---|
static BHSDCodec |
getCanonicalCodec(int i) |
static Codec |
getCodec(int value,
InputStream in,
Codec defaultCodec)
Returns the codec specified by the given value byte and optional byte header.
|
static int[] |
getSpecifier(Codec codec,
Codec defaultForBand) |
static int |
getSpecifierForDefaultCodec(BHSDCodec defaultCodec) |
public CodecEncoding()
public static Codec getCodec(int value, InputStream in, Codec defaultCodec) throws IOException, Pack200Exception
value
- the canonical encoding valuein
- the input stream to read additional byte headers fromdefaultCodec
- TODOnull
if the default should be usedIOException
- if there is a problem reading from the input stream (which in reality, is never, since the
band_headers are likely stored in a byte array and accessed via a ByteArrayInputStream. However, an
EOFException could occur if things go wrong)Pack200Exception
- TODOpublic static int getSpecifierForDefaultCodec(BHSDCodec defaultCodec)
public static int[] getSpecifier(Codec codec, Codec defaultForBand)
public static BHSDCodec getCanonicalCodec(int i)
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.