Class ByteArrayListOutputStream

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class ByteArrayListOutputStream extends ReversibleOutputStream
An OutputStream that writes to a list of byte arrays. The buffers have a minimum size. If a write operation is smaller than the minimum size, the data is stored in a separate buffer. This buffer will be filled up by subsequent writings to the minimum size before another buffer is created.
  • Constructor Details

    • ByteArrayListOutputStream

      public ByteArrayListOutputStream()
      Creates a new ByteArrayListOutputStream with a minimum buffer size of 4096 bytes.
    • ByteArrayListOutputStream

      public ByteArrayListOutputStream(int minBufferSize)
      Creates a new ByteArrayListOutputStream with the given minimum buffer size.
      Parameters:
      minBufferSize - the minimum buffer size
  • Method Details