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
IOException
public void writeBytes(String string) throws IOException
IOException
public void write(int int2) throws IOException
IOException
public void writeShort(short short2) throws IOException
IOException
public byte[] bytes()
public void reset()