public class RConOutputStream
extends java.lang.Object
| Constructor and Description |
|---|
RConOutputStream(int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
reset()
Resets the byte array output.
|
byte[] |
toByteArray()
Returns the contents of the output stream as a byte array
|
void |
writeByteArray(byte[] data)
Writes the given byte array to the output stream
|
void |
writeInt(int data)
Writes the given int to the output stream
|
void |
writeShort(short data)
Writes the given short to the output stream
|
void |
writeString(java.lang.String data)
Writes the given String to the output stream
|
public void writeByteArray(byte[] data)
throws java.io.IOException
java.io.IOExceptionpublic void writeString(java.lang.String data)
throws java.io.IOException
java.io.IOExceptionpublic void writeInt(int data)
throws java.io.IOException
java.io.IOExceptionpublic void writeShort(short data)
throws java.io.IOException
java.io.IOExceptionpublic byte[] toByteArray()
public void reset()