类 SerializingConverter

java.lang.Object
cn.taketoday.core.serializer.support.SerializingConverter
所有已实现的接口:
Converter<Object,byte[]>

public class SerializingConverter extends Object implements Converter<Object,byte[]>
A Converter that delegates to a Serializer to convert an object to a byte array.
从以下版本开始:
4.0
作者:
Gary Russell, Mark Fisher
  • 字段详细资料

  • 构造器详细资料

    • 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.
  • 方法详细资料

    • convert

      public byte[] convert(Object source)
      Serializes the source object and returns the byte array result.
      指定者:
      convert 在接口中 Converter<Object,byte[]>
      参数:
      source - the source object to convert, which must be an instance of S (never null)
      返回:
      the converted object, which must be an instance of T (potentially null)