Package naga
Interface PacketWriter
- All Known Implementing Classes:
AsciiLinePacketWriter,CipherPacketWriter,DelimiterPacketWriter,RawPacketWriter,RegularPacketWriter,SSLPacketHandler,ZeroDelimitedPacketWriter
public interface PacketWriter
Interface for classes implementing packet writing strategies.
The method write(ByteBuffer[]) converts an incoming byte array
to an outgoing byte array.
- Author:
- Christoffer Lerno
-
Method Summary
Modifier and TypeMethodDescriptionwrite(ByteBuffer[] byteBuffer) Convert the incoming bytes to the bytes to be serialized.
-
Method Details
-
write
Convert the incoming bytes to the bytes to be serialized.- Parameters:
byteBuffer- an array of ByteBuffers containing data the bytes to be written.- Returns:
- the resulting array of ByteBuffers.
-