public interface BlockEncoder
For example, implementations may compress or encrypt.
BlockDecoder
Modifier and Type | Interface and Description |
---|---|
static interface |
BlockEncoder.WritableBytes
Writable byte buffer.
|
Modifier and Type | Method and Description |
---|---|
BlockEncoder.WritableBytes |
encode(DataInput blockBytes,
long length)
Encodes all the bytes of one block in a single operation.
|
BlockEncoder.WritableBytes encode(DataInput blockBytes, long length) throws java.io.IOException
blockBytes
- The input block bytes to read.length
- The number of bytes to read from the input.java.io.IOException
- If an encoding error occurs.