Class DirectAccessByteArrayOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.apache.jmeter.protocol.http.util.DirectAccessByteArrayOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
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
-
Field Summary
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toString, toString, toString, toString, write, write, writeBytes, writeTo
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Constructor Details
-
DirectAccessByteArrayOutputStream
public DirectAccessByteArrayOutputStream(int initialSize)
-
-
Method Details
-
toByteArray
public byte[] toByteArray()- Overrides:
toByteArray
in classByteArrayOutputStream
-