Package naga.packetwriter
Class RawPacketWriter
java.lang.Object
naga.packetwriter.RawPacketWriter
- All Implemented Interfaces:
PacketWriter
Writes a byte packet to the stream without doing any changes to it.
This is the commonly case when one wants to output text or similarly delimited data.
- Author:
- Christoffer Lerno
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionwrite
(ByteBuffer[] byteBuffers) Convert the incoming bytes to the bytes to be serialized.
-
Field Details
-
INSTANCE
-
-
Method Details
-
write
Description copied from interface:PacketWriter
Convert the incoming bytes to the bytes to be serialized.- Specified by:
write
in interfacePacketWriter
- Parameters:
byteBuffers
- an array of ByteBuffers containing data the bytes to be written.- Returns:
- the resulting array of ByteBuffers.
-