PacketWriter (Naga API)
Date: 2016-06-28

naga

## Interface PacketWriter

- All Known Implementing Classes:
    AsciiLinePacketWriter, CipherPacketWriter, DelimiterPacketWriter, RawPacketWriter, RegularPacketWriter, SSLPacketHandler, ZeroDelimitedPacketWriter

      public interface PacketWriter

  Interface for classes implementing packet writing strategies.

  The method `write(ByteBuffer[])` converts an incoming byte array to an outgoing byte array.

  Author:
    Christoffer Lerno

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.nio.ByteBuffer[]` | `write(java.nio.ByteBuffer[] byteBuffer)` Convert the incoming bytes to the bytes to be serialized.

- - ### Method Detail

    - #### write

          java.nio.ByteBuffer[] write(java.nio.ByteBuffer[] byteBuffer)

      Convert the incoming bytes to the bytes to be serialized.
      Parameters:
        `byteBuffer` - an array of ByteBuffers containing data the bytes to be written.
      Returns:
        the resulting array of ByteBuffers.