Interface Coder

All Known Implementing Classes:
JSONCoder

public interface Coder
Declares methods a coder should implement.
  • Method Details

    • encode

      String encode(Object value)
      Encode an object
    • decode

      Object decode(String archive)
      Decode the archive
    • registerType

      <C, R> void registerType(Class<C> type, ConversionAdaptor<C,R> adaptor)
      Register the custom type by class and its associated adaptor
    • getSupportedTypes

      List<String> getSupportedTypes()
      Get a list of all types which are supported for coding and decoding