Class DirectAccessByteArrayOutputStream

java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.apache.jmeter.protocol.http.util.DirectAccessByteArrayOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class DirectAccessByteArrayOutputStream extends ByteArrayOutputStream
this is a non thread-safe specialization of java ByteArrayOutputStream it returns the internal buffer if its size matches the byte count
Since:
3.1
  • Constructor Details

    • DirectAccessByteArrayOutputStream

      public DirectAccessByteArrayOutputStream(int initialSize)
  • Method Details