public class ByteArrayOutput extends Object implements BinaryOutput
| Constructor and Description |
|---|
ByteArrayOutput() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
Charset |
getCharset() |
String |
getString() |
void |
write(byte b) |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int off,
int len) |
public Charset getCharset()
getCharset in interface BinaryOutputpublic void write(byte b)
throws IOException
write in interface BinaryOutputIOExceptionpublic void write(byte[] bytes)
throws IOException
write in interface BinaryOutputIOExceptionpublic void write(byte[] bytes,
int off,
int len)
throws IOException
write in interface BinaryOutputIOExceptionpublic byte[] getBytes()
public String getString() throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2017 JBoss by Red Hat. All Rights Reserved.