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(java.io.OutputStream stream,
java.nio.ByteBuffer buffer)
Encodes up to
buffer.remaining() bytes into the given input stream,
from the given buffer. |
void encode(java.io.OutputStream stream,
java.nio.ByteBuffer buffer)
throws java.io.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 fromjava.io.IOException - if an I/O error occursCopyright © 2018. All Rights Reserved.