Package org.apache.spark.util
Class ExposedBufferByteArrayOutputStream
Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.apache.spark.util.ExposedBufferByteArrayOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Subclass of ByteArrayOutputStream that exposes `buf` directly.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, toString, write, write, writeBytes, writeTo
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Constructor Details
-
ExposedBufferByteArrayOutputStream
public ExposedBufferByteArrayOutputStream(int size)
-
-
Method Details
-
getBuf
public byte[] getBuf()
-