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 SummaryConstructors
- 
Method SummaryMethods inherited from class java.io.ByteArrayOutputStreamclose, reset, size, toByteArray, toString, toString, toString, toString, write, write, writeBytes, writeToMethods inherited from class java.io.OutputStreamflush, nullOutputStream, write
- 
Constructor Details- 
ExposedBufferByteArrayOutputStreampublic ExposedBufferByteArrayOutputStream(int size) 
 
- 
- 
Method Details- 
getBufpublic byte[] getBuf()
 
-