Interface ObjectEncoder

All Superinterfaces:
Identifiable
All Known Subinterfaces:
ObjectCodec

public interface ObjectEncoder extends Identifiable
API for a service that can encode objects into alternate representations.
Since:
1.69
Version:
1.0
Author:
matt
See Also:
  • Method Details

    • encodeAsBytes

      byte[] encodeAsBytes(Object obj, Map<String,?> parameters) throws IOException
      Encode an object into a byte array.
      Parameters:
      obj - the object to encode
      parameters - optional parameters to pass to the encoder
      Returns:
      the bytes, never null
      Throws:
      IOException - if an encoding problem occurs