Class DelimiterPacketWriter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.ByteBuffer[] write​(java.nio.ByteBuffer[] byteBuffer)
      Convert the incoming bytes to the bytes to be serialized.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DelimiterPacketWriter

        public DelimiterPacketWriter​(byte endByte)
    • Method Detail

      • write

        public java.nio.ByteBuffer[] write​(java.nio.ByteBuffer[] byteBuffer)
        Description copied from interface: PacketWriter
        Convert the incoming bytes to the bytes to be serialized.
        Specified by:
        write in interface PacketWriter
        Parameters:
        byteBuffer - an array of ByteBuffers containing data the bytes to be written.
        Returns:
        the resulting array of ByteBuffers.