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)
PacketWriterwrite in interface PacketWriterbyteBuffers - an array of ByteBuffers containing data the bytes to be written.