public class UnsafeByteArrayOutputStream extends OutputStream
| 构造器和说明 |
|---|
UnsafeByteArrayOutputStream() |
UnsafeByteArrayOutputStream(int size) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 OutputStreampublic void write(byte[] b,
int off,
int len)
write 在类中 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
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 OutputStreamIOExceptionCopyright © 2018. All rights reserved.