|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.netseeker.ejoe.adapter.BaseAdapter de.netseeker.ejoe.adapter.XStreamAdapter de.netseeker.ejoe.adapter.json.XStreamJsonAdapter
public class XStreamJsonAdapter
Write-only SerializeAdapter supporting JSON. Uses XSteam for writing out Objects to JSON but can't deserialize JSON requests to Objects. It does just return the JSON strings on read operations.
Field Summary |
---|
Fields inherited from class de.netseeker.ejoe.adapter.XStreamAdapter |
---|
_xstream |
Constructor Summary | |
---|---|
XStreamJsonAdapter()
Creates a new instance of this adapter. |
Method Summary | |
---|---|
java.lang.String |
getContentType()
|
java.lang.Object |
read(java.io.InputStream in)
Deserializes an object out of an given InputStream |
Methods inherited from class de.netseeker.ejoe.adapter.XStreamAdapter |
---|
handleClassLoaderChange, write |
Methods inherited from class de.netseeker.ejoe.adapter.BaseAdapter |
---|
isSelfBuffered, requiresCustomEOFHandling |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XStreamJsonAdapter()
Method Detail |
---|
public java.lang.Object read(java.io.InputStream in) throws java.lang.Exception
SerializeAdapter
read
in interface SerializeAdapter
read
in class XStreamAdapter
in
- the input stream to use for deserialization
java.lang.Exception
public java.lang.String getContentType()
getContentType
in interface SerializeAdapter
getContentType
in class XStreamAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |