org.springframework.core.serializer.support

## 类 SerializingConverter

- java.lang.Object
- - org.springframework.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.
  从以下版本开始:
    3.0.5
  作者:
    Gary Russell, Mark Fisher

- - ### 构造器概要

    构造器
    构造器和说明
    `SerializingConverter()` Create a default `SerializingConverter` that uses standard Java serialization.
    `SerializingConverter(Serializer<Object> serializer)` Create a `SerializingConverter` that delegates to the provided `Serializer`.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `byte[]` | `convert(Object source)` Serializes the source object and returns the byte array result.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### 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`)