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
Interface Serializer<T>

All Known Implementing Classes:
  DefaultSerializer

    public interface Serializer<T>

A strategy interface for streaming an object to an OutputStream.

Since:
  3.0.5
Author:
  Gary Russell, Mark Fisher

Method Summary
`void` | `serialize(T object, java.io.OutputStream outputStream)` Write an object of type T to the given OutputStream.

Method Detail

### serialize

    void serialize(T object,
                   java.io.OutputStream outputStream)
                   throws java.io.IOException

  Write an object of type T to the given OutputStream.

  Note: Implementations should not close the given OutputStream (or any decorators of that OutputStream) but rather leave this up to the caller.

  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