Package com.io7m.cedarbridge.runtime.api

# Class CBByteArraySerializer

java.lang.Object
com.io7m.cedarbridge.runtime.api.CBAbstractSerializer<CBByteArray>
com.io7m.cedarbridge.runtime.api.CBByteArraySerializer

All Implemented Interfaces:
  `CBSerializerType<CBByteArray>`

public final class CBByteArraySerializer extends CBAbstractSerializer<CBByteArray>
A serializer of byte arrays.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CBByteArraySerializer()`
  Construct a serializer of byte arrays.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CBByteArray`
  `deserialize(CBSerializationContextType context)`
  Deserialize a value of the given type.
  `void`
  `serialize(CBSerializationContextType context, CBByteArray value)`
  Serialize a value of the given type.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CBByteArraySerializer

    public CBByteArraySerializer()
    Construct a serializer of byte arrays.

- ## Method Details

  - ### serialize

    public void serialize(CBSerializationContextType context, CBByteArray value) throws IOException
    Description copied from interface: `CBSerializerType`
    Serialize a value of the given type.
    Parameters:
      `context` - The serialization context
      `value` - The value to be serialized
    Throws:
      `IOException` - On I/O errors

  - ### deserialize

    public CBByteArray deserialize(CBSerializationContextType context) throws IOException
    Description copied from interface: `CBSerializerType`
    Deserialize a value of the given type.
    Parameters:
      `context` - The serialization context
    Returns:
      A deserialized value
    Throws:
      `IOException` - On I/O errors