Package org.apache.dubbo.common.io
Class UnsafeByteArrayOutputStream
java.lang.Object
java.io.OutputStream
org.apache.dubbo.common.io.UnsafeByteArrayOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
UnsafeByteArrayOutputStream.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Constructor Details
-
UnsafeByteArrayOutputStream
public UnsafeByteArrayOutputStream() -
UnsafeByteArrayOutputStream
public UnsafeByteArrayOutputStream(int size)
-
-
Method Details
-
write
public void write(int b) - Specified by:
writein classOutputStream
-
write
public void write(byte[] b, int off, int len) - Overrides:
writein classOutputStream
-
size
public int size() -
reset
public void reset() -
toByteArray
public byte[] toByteArray() -
toByteBuffer
-
writeTo
- Throws:
IOException
-
toString
-
toString
- Throws:
UnsupportedEncodingException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-