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

    Modifier and Type Method Description
    <T> T fromByte​(java.lang.Class<T> clazz, byte[] data)  
    <T> T read​(java.lang.Class<T> clazz, java.io.BufferedReader reader)  
    byte[] toByte​(java.lang.Object o)  
    void write​(java.lang.Object o, java.io.PrintWriter writer)  

    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 interface jSpaceMarshaller
    • fromByte

      public <T> T fromByte​(java.lang.Class<T> clazz, byte[] data)
      Specified by:
      fromByte in interface jSpaceMarshaller
    • read

      public <T> T read​(java.lang.Class<T> clazz, java.io.BufferedReader reader) throws java.io.IOException
      Specified by:
      read in interface jSpaceMarshaller
      Throws:
      java.io.IOException
    • write

      public void write​(java.lang.Object o, java.io.PrintWriter writer)
      Specified by:
      write in interface jSpaceMarshaller