Package com.linkedin.venice.io
Class ZeroCopyByteArrayOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
com.linkedin.venice.io.ZeroCopyByteArrayOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
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
-
ZeroCopyByteArrayOutputStream
public ZeroCopyByteArrayOutputStream(int size)
-
-
Method Details
-
toByteArray
public byte[] toByteArray()- Overrides:
toByteArray
in classByteArrayOutputStream
-
toByteBuffer
-