de.netseeker.ejoe.adapter.json
Class SojoJsonAdapter

java.lang.Object
  extended by de.netseeker.ejoe.adapter.BaseAdapter
      extended by de.netseeker.ejoe.adapter.UTF8StringAdapter
          extended by de.netseeker.ejoe.adapter.json.SojoJsonAdapter
All Implemented Interfaces:
SerializeAdapter, java.io.Serializable

public class SojoJsonAdapter
extends UTF8StringAdapter

An adapter for (de)serializing objects via the JsonSerializer of SOJO - Simplify your Old Java Objects

Since:
0.3.9.2
Author:
netseeker
See Also:
SOJO, Serialized Form

Constructor Summary
SojoJsonAdapter()
           
 
Method Summary
 java.lang.Object read(java.io.InputStream in)
          Deserializes an object out of an given InputStream
 void write(java.lang.Object obj, java.io.OutputStream out)
          Serializes an object into an output stream
 
Methods inherited from class de.netseeker.ejoe.adapter.UTF8StringAdapter
getContentType
 
Methods inherited from class de.netseeker.ejoe.adapter.BaseAdapter
handleClassLoaderChange, isSelfBuffered, requiresCustomEOFHandling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SojoJsonAdapter

public SojoJsonAdapter()
Method Detail

read

public java.lang.Object read(java.io.InputStream in)
                      throws java.lang.Exception
Description copied from interface: SerializeAdapter
Deserializes an object out of an given InputStream

Specified by:
read in interface SerializeAdapter
Overrides:
read in class UTF8StringAdapter
Parameters:
in - the input stream to use for deserialization
Returns:
a deserialized object instance
Throws:
java.lang.Exception

write

public void write(java.lang.Object obj,
                  java.io.OutputStream out)
           throws java.lang.Exception
Description copied from interface: SerializeAdapter
Serializes an object into an output stream

Specified by:
write in interface SerializeAdapter
Overrides:
write in class UTF8StringAdapter
Parameters:
obj - object that should get serialized
out - the outputstream into which the object should serialized
Throws:
java.lang.Exception


Copyright © 2005-2007 netseeker. All Rights Reserved.