org.springframework.core.serializer

## 类 DefaultSerializer

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

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

      public class DefaultSerializer
      extends Object
      implements Serializer<Object>

  A `Serializer` implementation that writes an object to an output stream using Java serialization.
  从以下版本开始:
    3.0.5
  作者:
    Gary Russell, Mark Fisher

- - ### 构造器概要

    构造器
    构造器和说明
    `DefaultSerializer()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `serialize(Object object, OutputStream outputStream)` Writes the source object to an output stream using Java serialization.

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

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

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

    - #### DefaultSerializer

          public DefaultSerializer()

  - ### 方法详细资料

    - #### serialize

          public void serialize(Object object,
                                OutputStream outputStream)
                         throws IOException

      Writes the source object to an output stream using Java serialization. The source object must implement `Serializable`.
      指定者:
        `serialize` 在接口中 `Serializer<Object>`
      参数:
        `object` - the object to serialize
        `outputStream` - the output stream
      抛出:
        `IOException` - in case of errors writing to the stream
      另请参阅:
        `ObjectOutputStream.writeObject(Object)`