Class ByteBufferOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.wildfly.clustering.marshalling.spi.ByteBufferOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
A specialized ByteArrayOutputStream that exposes the internal buffer.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from class java.io.ByteArrayOutputStream
buf, count -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the internal buffer of this output stream.Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, toString, write, write, writeBytes, writeToMethods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Constructor Details
-
ByteBufferOutputStream
public ByteBufferOutputStream() -
ByteBufferOutputStream
-
ByteBufferOutputStream
public ByteBufferOutputStream(int size)
-
-
Method Details
-
getBuffer
Returns the internal buffer of this output stream.- Returns:
- the internal byte buffer.
-