Class BoundedByteArrayOutputStream

java.lang.Object
java.io.OutputStream
org.jppf.utils.streams.BoundedByteArrayOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class BoundedByteArrayOutputStream extends OutputStream
A byte ArrayOutputStream with a maximum size of data that can be written into it.
Author:
Laurent Cohen
  • Constructor Details

    • BoundedByteArrayOutputStream

      public BoundedByteArrayOutputStream(byte[] buf, int offset, int length)
      Initialize this stream.
      Parameters:
      buf - the backing buffer.
      offset - start position in the backing buffer.
      length - maximum length of data that can be written.
  • Method Details