public class RConOutputStream
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.io.ByteArrayOutputStream |
byteArrayOutput |
private java.io.DataOutputStream |
output |
Constructor and Description |
---|
RConOutputStream(int size) |
Modifier and Type | Method and Description |
---|---|
void |
reset() |
byte[] |
toByteArray() |
void |
writeByteArray(byte[] data) |
void |
writeInt(int data) |
void |
writeShort(short data) |
void |
writeString(java.lang.String data) |
private final java.io.ByteArrayOutputStream byteArrayOutput
private final java.io.DataOutputStream output
public void writeByteArray(byte[] data) throws java.io.IOException
java.io.IOException
public void writeString(java.lang.String data) throws java.io.IOException
java.io.IOException
public void writeInt(int data) throws java.io.IOException
java.io.IOException
public void writeShort(short data) throws java.io.IOException
java.io.IOException
public byte[] toByteArray()
public void reset()