public interface JsonSerialization
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(java.lang.Class<T> manifest,
byte[] content,
int size)
Try to deserialize provided JSON byte array input into specified object.
|
<T extends AggregateRoot> |
deserializeHistoryList(java.lang.Class<T> manifest,
byte[] content,
int size)
To work around JVM erasure specify history element type.
|
<T> java.util.List<T> |
deserializeList(java.lang.Class<T> manifest,
byte[] content,
int size)
To work around JVM erasure specify list element type.
|
Bytes |
serialize(java.lang.Object value)
Serialize object if possible.
|
void |
serialize(java.io.Writer writer,
java.lang.Object value)
Serialize object if possible to an existing Writer.
|
Bytes serialize(java.lang.Object value) throws java.io.IOException
value - object instance to serializejava.io.IOExceptionvoid serialize(java.io.Writer writer,
java.lang.Object value)
throws java.io.IOException
value - object instance to serializejava.io.IOException<T> T deserialize(java.lang.Class<T> manifest,
byte[] content,
int size)
throws java.io.IOException
T - expected object typemanifest - object manifestcontent - JSON arraysize - specify lengthjava.io.IOException<T> java.util.List<T> deserializeList(java.lang.Class<T> manifest,
byte[] content,
int size)
throws java.io.IOException
T - expected object typemanifest - object manifestcontent - JSON arraysize - specify lengthjava.io.IOException<T extends AggregateRoot> java.util.List<History<T>> deserializeHistoryList(java.lang.Class<T> manifest, byte[] content, int size) throws java.io.IOException
T - expected object typemanifest - object manifestcontent - JSON arraysize - specify lengthjava.io.IOException