public class JsonMarshaller extends Object implements IMarshaller
| Constructor and Description |
|---|
JsonMarshaller() |
| 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) throws ServiceException
IMarshallerSerializable object.serialize in interface IMarshallerobject - the Serializable objectServiceExceptionpublic <T> T deserialize(InputStream inputStream, Class<T> clazz) throws ServiceException
IMarshallerdeserialize in interface IMarshallerinputStream - the input streamServiceExceptionpublic <T> T deserialize(byte[] objectData,
Class<T> clazz)
throws ServiceException
IMarshallerdeserialize in interface IMarshallerobjectData - the object dataServiceExceptionpublic String getMimeType()
IMarshallergetMimeType in interface IMarshallerCopyright © 2016. All rights reserved.