org.springframework.core.serializer.support

## 类 DeserializingConverter

- java.lang.Object
- - org.springframework.core.serializer.support.DeserializingConverter

- 所有已实现的接口:
    Converter<byte[],Object>

      public class DeserializingConverter
      extends Object
      implements Converter<byte[],Object>

  A `Converter` that delegates to a `Deserializer` to convert data in a byte array to an object.
  从以下版本开始:
    3.0.5
  作者:
    Gary Russell, Mark Fisher, Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `DeserializingConverter()` Create a `DeserializingConverter` with default `ObjectInputStream` configuration, using the "latest user-defined ClassLoader".
    `DeserializingConverter(ClassLoader classLoader)` Create a `DeserializingConverter` for using an `ObjectInputStream` with the given `ClassLoader`.
    `DeserializingConverter(Deserializer<Object> deserializer)` Create a `DeserializingConverter` that delegates to the provided `Deserializer`.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Object` | `convert(byte[] source)` Convert the source object of type `S` to target type `T`.

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

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

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

    - #### DeserializingConverter

          public DeserializingConverter()

      Create a `DeserializingConverter` with default `ObjectInputStream` configuration, using the "latest user-defined ClassLoader".
      另请参阅:
        `DefaultDeserializer.DefaultDeserializer()`

    - #### DeserializingConverter

          public DeserializingConverter(ClassLoader classLoader)

      Create a `DeserializingConverter` for using an `ObjectInputStream` with the given `ClassLoader`.
      从以下版本开始:
        4.2.1
      另请参阅:
        `DefaultDeserializer.DefaultDeserializer(ClassLoader)`

    - #### DeserializingConverter

          public DeserializingConverter(Deserializer<Object> deserializer)

      Create a `DeserializingConverter` that delegates to the provided `Deserializer`.

  - ### 方法详细资料

    - #### convert

          public Object convert(byte[] source)

      从接口复制的说明: `Converter`
      Convert the source object of type `S` to target type `T`.
      指定者:
        `convert` 在接口中 `Converter<byte[],Object>`
      参数:
        `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`)