Class ByteArrayDataOutputStream

All Implemented Interfaces:
Closeable, DataOutput, Flushable, AutoCloseable

public class ByteArrayDataOutputStream extends BaseDataOutputStream
Implements DataOutput over a byte[] buffer. The byte[] buffer expands when needed; however, it doesn't double but only expands minimally, to accommodate the additional data. It is therefore recommended to always size the buffer to the actual number of bytes needed. This class is not thread safe.
Since:
3.5
Author:
Bela Ban