public abstract class Encoder extends Compression
| Constructor and Description |
|---|
Encoder() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
closeEncoding(java.nio.channels.WritableByteChannel dst)
Close the encoding data stream and write any needed termination mark.
|
abstract int |
encode(java.nio.ByteBuffer src,
java.nio.channels.WritableByteChannel dst)
Encode data.
|
beginProcessing, endProcessing, name, processingTime, rateIn, rateOut, reset, totalIn, totalOutpublic abstract int encode(java.nio.ByteBuffer src,
java.nio.channels.WritableByteChannel dst)
throws java.io.IOException
src - The ByteBuffer providing the data to encode.dst - The WritableByteChannel receiving the encoded
bytes.java.io.IOException - if an I/O error occurs.public abstract int closeEncoding(java.nio.channels.WritableByteChannel dst)
throws java.io.IOException
dst - The WritableByteChannel receiving the encoded
bytes.java.io.IOException - if an I/O error occurs.