Base64Decoder, PackBitsDecoderpublic interface Decoder
Decoder may be used with a DecoderStream, to perform
on-the-fly decoding from an InputStream.
Important note: Decoder implementations are typically not synchronized.
Encoder,
DecoderStream| Modifier and Type | Method | Description |
|---|---|---|
int |
decode(InputStream stream,
ByteBuffer buffer) |
Decodes up to
buffer.length bytes from the given input stream,
into the given buffer. |
int decode(InputStream stream, ByteBuffer buffer) throws IOException
buffer.length bytes from the given input stream,
into the given buffer.stream - the input stream to decode data frombuffer - buffer to store the read data0
if there is no more data because the end of the stream has been reached.DecodeException - if encoded data is corrupt.IOException - if an I/O error occurs.EOFException - if a premature end-of-file is encountered.NullPointerException - if either argument is null.Copyright © 2018. All rights reserved.