org.springframework.core.serializer

## 类 DefaultDeserializer

- java.lang.Object
- - org.springframework.core.serializer.DefaultDeserializer

- 所有已实现的接口:
    Deserializer<Object>

      public class DefaultDeserializer
      extends Object
      implements Deserializer<Object>

  A default `Deserializer` implementation that reads an input stream using Java serialization.
  从以下版本开始:
    3.0.5
  作者:
    Gary Russell, Mark Fisher, Juergen Hoeller
  另请参阅:
    `ObjectInputStream`

- - ### 构造器概要

    构造器
    构造器和说明
    `DefaultDeserializer()` Create a `DefaultDeserializer` with default `ObjectInputStream` configuration, using the "latest user-defined ClassLoader".
    `DefaultDeserializer(ClassLoader classLoader)` Create a `DefaultDeserializer` for using an `ObjectInputStream` with the given `ClassLoader`.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Object` | `deserialize(InputStream inputStream)` Read from the supplied `InputStream` and deserialize the contents into an object.

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

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

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

    - #### DefaultDeserializer

          public DefaultDeserializer()

      Create a `DefaultDeserializer` with default `ObjectInputStream` configuration, using the "latest user-defined ClassLoader".

    - #### DefaultDeserializer

          public DefaultDeserializer(@Nullable
                                     ClassLoader classLoader)

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

  - ### 方法详细资料

    - #### deserialize

          public Object deserialize(InputStream inputStream)
                             throws IOException

      Read from the supplied `InputStream` and deserialize the contents into an object.
      指定者:
        `deserialize` 在接口中 `Deserializer<Object>`
      参数:
        `inputStream` - the input stream
      返回:
        the deserialized object
      抛出:
        `IOException` - in case of errors reading from the stream
      另请参阅:
        `ObjectInputStream.readObject()`