| java.lang.Object org.apache.harmony.pack200.CodecEncoding
CodecEncoding | public class CodecEncoding (Code) | | |
Method Summary | |
public static Codec | getCodec(int value, InputStream in, Codec defaultCodec) Returns 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. |
getCodec | public static Codec getCodec(int value, InputStream in, Codec defaultCodec) throws IOException, Pack200Exception(Code) | | Returns 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.
Parameters: value - the canonical encoding value Parameters: in - the input stream to read additional byte headers from Parameters: defaultCodec - TODO the corresponding codec, or null if the default should be used throws: IOException - throws: IOException - if there is a problem reading from the input stream (whichin reality, is never, since the band_headers are likely stored in a byte arrayand accessed via a ByteArrayInputStream. However, an EOFException could occurif things go wrong) throws: Pack200Exception - |
|
|