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 java.io.ByteArrayOutputStream
buf, count
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
Methods inherited from class java.io.OutputStream
flush, write
-
Constructor Details
-
ExposedBufferByteArrayOutputStream
public ExposedBufferByteArrayOutputStream() -
ExposedBufferByteArrayOutputStream
public ExposedBufferByteArrayOutputStream(int size)
-
-
Method Details
-
getBuffer
public byte[] getBuffer()
-