Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.core.serializer
Class DefaultSerializer

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

All Implemented Interfaces:
  Serializer<java.lang.Object>

    public class DefaultSerializer

extends java.lang.Object
implements Serializer<java.lang.Object>

Serializer that writes an object to an output stream using Java Serialization.

Since:
  3.0.5
Author:
  Gary Russell, Mark Fisher

Constructor Summary
`DefaultSerializer()`

Method Summary
`void` | `serialize(java.lang.Object object, java.io.OutputStream outputStream)` Writes the source object to an output stream using Java Serialization.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DefaultSerializer

    public DefaultSerializer()

Method Detail

### serialize

    public void serialize(java.lang.Object object,
                          java.io.OutputStream outputStream)
                   throws java.io.IOException

  Writes the source object to an output stream using Java Serialization. The source object must implement `Serializable`.

  Specified by:
    `serialize` in interface `Serializer<java.lang.Object>`
  Parameters:
    `object` - the object to serialize
    `outputStream` - the output stream
  Throws:
    `java.io.IOException` - in case of errors writing to the stream

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD