Package naga.packetwriter
Class CipherPacketWriter
java.lang.Object
naga.packetwriter.CipherPacketWriter
- All Implemented Interfaces:
PacketWriter
Example Writer that encrypts the outgoing stream using a Cipher object.
- Author:
- Christoffer Lerno
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setPacketWriter
(PacketWriter packetWriter) write
(ByteBuffer[] byteBuffer) Convert the incoming bytes to the bytes to be serialized.
-
Constructor Details
-
CipherPacketWriter
-
-
Method Details
-
getPacketWriter
-
setPacketWriter
-
write
Description copied from interface:PacketWriter
Convert the incoming bytes to the bytes to be serialized.- Specified by:
write
in interfacePacketWriter
- Parameters:
byteBuffer
- an array of ByteBuffers containing data the bytes to be written.- Returns:
- the resulting array of ByteBuffers.
-