Package org.jspace.io
Class JSonMarshaller
java.lang.Object
org.jspace.io.JSonMarshaller
- All Implemented Interfaces:
jSpaceMarshaller
public class JSonMarshaller extends java.lang.Object implements jSpaceMarshaller
-
Constructor Summary
Constructors Constructor Description JSonMarshaller()
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JSonMarshaller
public JSonMarshaller()
-
-
Method Details
-
toByte
public byte[] toByte(java.lang.Object o)- Specified by:
toByte
in interfacejSpaceMarshaller
-
fromByte
public <T> T fromByte(java.lang.Class<T> clazz, byte[] data)- Specified by:
fromByte
in interfacejSpaceMarshaller
-
read
public <T> T read(java.lang.Class<T> clazz, java.io.BufferedReader reader) throws java.io.IOException- Specified by:
read
in interfacejSpaceMarshaller
- Throws:
java.io.IOException
-
write
public void write(java.lang.Object o, java.io.PrintWriter writer)- Specified by:
write
in interfacejSpaceMarshaller
-