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

naga.packetwriter

## Class RawPacketWriter

- java.lang.Object
- - naga.packetwriter.RawPacketWriter

- All Implemented Interfaces:
    PacketWriter

      public class RawPacketWriter
      extends java.lang.Object
      implements 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
    Modifier and Type | Field and Description
    --- | ---
    `static RawPacketWriter` | `INSTANCE`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.nio.ByteBuffer[]` | `write(java.nio.ByteBuffer[] byteBuffers)` 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`

- - ### Field Detail

    - #### INSTANCE

          public static RawPacketWriter INSTANCE

  - ### Method Detail

    - #### write

          public java.nio.ByteBuffer[] write(java.nio.ByteBuffer[] byteBuffers)

      Description copied from interface: `PacketWriter`
      Convert the incoming bytes to the bytes to be serialized.
      Specified by:
        `write` in interface `PacketWriter`
      Parameters:
        `byteBuffers` - an array of ByteBuffers containing data the bytes to be written.
      Returns:
        the resulting array of ByteBuffers.