Class SerializingConverter

  • java.lang.Object
    • Constructor Detail

      • SerializingConverter

        public SerializingConverter()
        Create a default SerializingConverter that uses standard Java serialization.
      • SerializingConverter

        public SerializingConverter(Serializer<Object> serializer)
        Create a SerializingConverter that delegates to the provided Serializer
    • Method Detail

      • convert

        public byte[] convert(Object source)
        Serializes the source object and returns the byte array result.
        Specified by:
        convert in interface  Converter<Object,byte[]>
        source - the source object to convert, which must be an instance of S
        the converted object, which must be an instance of T