public class MessageWriteByteStrategy extends java.lang.Object implements WriteByteStrategy
Constructor and Description |
---|
MessageWriteByteStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
writeBytes(java.io.DataOutputStream dataOutputStream,
byte[] bytes)
Writes an int containing the length of the byte array followed by the byte array.
|
public void writeBytes(java.io.DataOutputStream dataOutputStream, byte[] bytes) throws java.io.IOException
writeBytes
in interface WriteByteStrategy
dataOutputStream
- the stream the bytes will be written to.bytes
- the bytes that are writtenjava.io.IOException
- if an exception is thrown while writing the bytes.