Interface MoeEncoder


public interface MoeEncoder
Encodes data into the byte representation of a supported format.
Author:
indroneel
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Encodes the supplied data using the default formatting.
    byte[]
    convert(AnyData data, boolean pretty)
    Encodes the supplied data, optionally formatting the output for readability.
  • Method Details

    • convert

      byte[] convert(AnyData data) throws CodecException
      Encodes the supplied data using the default formatting.
      Parameters:
      data - the data to encode
      Returns:
      the encoded data as a byte array
      Throws:
      CodecException
    • convert

      byte[] convert(AnyData data, boolean pretty) throws CodecException
      Encodes the supplied data, optionally formatting the output for readability.
      Parameters:
      data - the data to encode
      pretty - whether to format the output for readability
      Returns:
      the encoded data as a byte array
      Throws:
      CodecException