Package de.huxhorn.lilith.sender
Interface WriteByteStrategy
-
- All Known Implementing Classes:
MessageWriteByteStrategy
,ZeroDelimitedWriteByteStrategy
public interface WriteByteStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
writeBytes(java.io.DataOutputStream dataOutputStream, byte[] bytes)
Writes the given bytes to dataOutputStream in an implementation-specific way.
-
-
-
Method Detail
-
writeBytes
void writeBytes(java.io.DataOutputStream dataOutputStream, byte[] bytes) throws java.io.IOException
Writes the given bytes to dataOutputStream in an implementation-specific way.- 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.
-
-