public interface Encoder
Encoder
may be used with an EncoderStream
, to perform
on-the-fly encoding to an OutputStream
.
Important note: Encoder implementations are typically not synchronized.Decoder
,
EncoderStream
Modifier and Type | Method and Description |
---|---|
void |
encode(OutputStream stream,
ByteBuffer buffer)
Encodes up to
buffer.remaining() bytes into the given input stream,
from the given buffer. |
void encode(OutputStream stream, ByteBuffer buffer) throws IOException
buffer.remaining()
bytes into the given input stream,
from the given buffer.stream
- the output stream to encode data tobuffer
- buffer to read data fromIOException
- if an I/O error occursCopyright © 2017. All rights reserved.