# Class LLv1Messages

java.lang.Object
com.io7m.looseleaf.protocol.v1.LLv1Messages

public final class LLv1Messages extends Object
Functions to deserialize/serialize V1 messages.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LLv1Messages()`
  Functions to deserialize/serialize V1 messages.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `LLv1MessageType`
  `deserialize(byte[] message)`
  Deserialize a message.
  `LLv1MessageType`
  `deserialize(InputStream stream)`
  Deserialize a message.
  `tools.jackson.databind.ObjectMapper`
  `mapper()`
  `byte[]`
  `serialize(LLv1MessageType message)`
  Serialize a message.

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### LLv1Messages

    public LLv1Messages()
    Functions to deserialize/serialize V1 messages.

- ## Method Details

  - ### mapper

    public tools.jackson.databind.ObjectMapper mapper()
    Returns:
      The underlying object mapper

  - ### serialize

    public byte[] serialize(LLv1MessageType message) throws IOException
    Serialize a message.
    Parameters:
      `message` - The message
    Returns:
      A serialized message
    Throws:
      `IOException` - On I/O errors

  - ### deserialize

    public LLv1MessageType deserialize(byte[] message) throws IOException
    Deserialize a message.
    Parameters:
      `message` - The message data
    Returns:
      A message
    Throws:
      `IOException` - On I/O errors

  - ### deserialize

    public LLv1MessageType deserialize(InputStream stream) throws IOException
    Deserialize a message.
    Parameters:
      `stream` - The input stream
    Returns:
      A message
    Throws:
      `IOException` - On I/O errors