Class BufferedBinaryEncoder

All Implemented Interfaces:
Flushable
Direct Known Subclasses:
BlockingBinaryEncoder

public class BufferedBinaryEncoder extends BinaryEncoder
An Encoder for Avro's binary encoding.

This implementation buffers output to enhance performance. Output may not appear on the underlying output until flush() is called.

DirectBinaryEncoder can be used in place of this implementation if the buffering semantics are not desired, and the performance difference is acceptable.

To construct or reconfigure, use EncoderFactory.binaryEncoder(OutputStream, BinaryEncoder).

To change the buffer size, configure the factory instance used to create instances with EncoderFactory.configureBufferSize(int)

See Also: