public class UnsafeByteArrayOutputStream extends OutputStream
| Constructor and Description |
|---|
UnsafeByteArrayOutputStream() |
UnsafeByteArrayOutputStream(int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
reset() |
int |
size() |
byte[] |
toByteArray() |
ByteBuffer |
toByteBuffer() |
String |
toString() |
String |
toString(String charset) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeTo(OutputStream out) |
flush, writepublic UnsafeByteArrayOutputStream()
public UnsafeByteArrayOutputStream(int size)
public void write(int b)
write in class OutputStreampublic void write(byte[] b,
int off,
int len)
write in class OutputStreampublic int size()
public void reset()
public byte[] toByteArray()
public ByteBuffer toByteBuffer()
public void writeTo(OutputStream out) throws IOException
IOExceptionpublic String toString(String charset) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.