Class ExposedBufferByteArrayOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.apache.sshd.contrib.common.util.io.ExposedBufferByteArrayOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Exposes direct access to the underlying buffer
-
Field Summary
Fields inherited from class ByteArrayOutputStream
buf, count -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, write, write, writeToMethods inherited from class OutputStream
flush, write
-
Constructor Details
-
ExposedBufferByteArrayOutputStream
public ExposedBufferByteArrayOutputStream() -
ExposedBufferByteArrayOutputStream
public ExposedBufferByteArrayOutputStream(int size)
-
-
Method Details
-
getBuffer
public byte[] getBuffer()
-