Converter that delegates to a
org.springframework.core.serializer.Serializer
to convert an object to a byte array.
| Modifier and Type | Field and Description |
|---|---|
| private final Serializer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SerializingConverter(Serializer<Object> serializer)
Create a |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | convert(Object
the source object to convert, which must be an instance of source)S (never null)Implements org. Serializes the source object and returns the byte array result. |
| serializer | back to summary |
|---|---|
| private final Serializer<Object> serializer | |
| SerializingConverter | back to summary |
|---|---|
| public SerializingConverter() Create a default | |
| SerializingConverter | back to summary |
|---|---|
| public SerializingConverter(Serializer<Object> serializer) Create a | |
| convert | back to summary |
|---|---|
| public byte[] convert(Object source) Implements org. Serializes the source object and returns the byte array result.
| |