Package de.huxhorn.lilith.sender
Class MessageWriteByteStrategy
- java.lang.Object
-
- de.huxhorn.lilith.sender.MessageWriteByteStrategy
-
- All Implemented Interfaces:
WriteByteStrategy
public class MessageWriteByteStrategy extends java.lang.Object implements WriteByteStrategy
-
-
Constructor Summary
Constructors Constructor Description MessageWriteByteStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeBytes(java.io.DataOutputStream dataOutputStream, byte[] bytes)
Writes an int containing the length of the byte array followed by the byte array.
-
-
-
Method Detail
-
writeBytes
public void writeBytes(java.io.DataOutputStream dataOutputStream, byte[] bytes) throws java.io.IOException
Writes an int containing the length of the byte array followed by the byte array.- Specified by:
writeBytes
in interfaceWriteByteStrategy
- Parameters:
dataOutputStream
- the stream the bytes will be written to.bytes
- the bytes that are written- Throws:
java.io.IOException
- if an exception is thrown while writing the bytes.
-
-