Interface Transcoder

All Known Implementing Classes:
EncryptedTranscoder

public interface Transcoder
Provides a strategy pattern interface for transforming an object into a byte array and vice versa. Transcoder components are used by ClientFlowExecutionRepository for producing the data stored in a ClientFlowExecutionKey.
Since:
6.1
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(byte[] encoded)
    Decodes a stream of bytes produced by encode(Object) back into the original object.
    byte[]
    Encodes an object into a stream of bytes.
  • Method Details

    • encode

      byte[] encode(Object o) throws IOException
      Encodes an object into a stream of bytes.
      Parameters:
      o - Object to encode.
      Returns:
      Object encoded as a byte array.
      Throws:
      IOException - On encoding errors.
    • decode

      Object decode(byte[] encoded) throws IOException
      Decodes a stream of bytes produced by encode(Object) back into the original object.
      Parameters:
      encoded - Encoded representation of an object.
      Returns:
      Object decoded from byte array.
      Throws:
      IOException - On decoding errors.