public class RawPacketWriter extends java.lang.Object implements PacketWriter
This is the commonly case when one wants to output text or similarly delimited data.
Modifier and Type | Field and Description |
---|---|
static RawPacketWriter |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer[] |
write(java.nio.ByteBuffer[] byteBuffers)
Convert the incoming bytes to the bytes to be serialized.
|
public static RawPacketWriter INSTANCE
public java.nio.ByteBuffer[] write(java.nio.ByteBuffer[] byteBuffers)
PacketWriter
write
in interface PacketWriter
byteBuffers
- an array of ByteBuffers containing data the bytes to be written.