public class BinaryMarshaller extends Object implements IMarshaller
| Constructor and Description |
|---|
BinaryMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(byte[] objectData,
Class<T> clazz)
Deserializes the object from the specified object data.
|
<T> T |
deserialize(InputStream inputStream,
Class<T> clazz)
Deserializes the object from the input-stream.
|
String |
getMimeType()
Gets the supported mime-type for this marshaller.
|
byte[] |
serialize(Serializable object)
Serialize the specified
Serializable object. |
public byte[] serialize(Serializable object)
IMarshallerSerializable object.serialize in interface IMarshallerobject - the Serializable objectpublic <T> T deserialize(InputStream inputStream, Class<T> clazz)
IMarshallerdeserialize in interface IMarshallerinputStream - the input streampublic <T> T deserialize(byte[] objectData,
Class<T> clazz)
IMarshallerdeserialize in interface IMarshallerobjectData - the object datapublic String getMimeType()
IMarshallergetMimeType in interface IMarshallerCopyright © 2016. All rights reserved.