public class DataStreamHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
private ByteArrayOutputStream |
byteArrayOutputStream |
private DataOutputStream |
dataOutputStream |
| Constructor and Description |
|---|
DataStreamHelper(int int2) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
bytes() |
void |
reset() |
void |
write(byte[] byte2) |
void |
write(int int2) |
void |
writeBytes(String string) |
void |
writeShort(short short2) |
private final ByteArrayOutputStream byteArrayOutputStream
private final DataOutputStream dataOutputStream
public void write(byte[] byte2)
throws IOException
IOExceptionpublic void writeBytes(String string) throws IOException
IOExceptionpublic void write(int int2)
throws IOException
IOExceptionpublic void writeShort(short short2)
throws IOException
IOExceptionpublic byte[] bytes()
public void reset()