|
||||||||||
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.JavolutionAdapter
public class JavolutionAdapter
An adapter for (de)serializing objects via the javolution library
http://javolution.org/
,
Serialized FormConstructor Summary | |
---|---|
JavolutionAdapter()
Creates a new instance of JavolutionAdapter preconfigured with additional custom XmlFormats for java.math.BigDecimal java.math.BigInteger |
|
JavolutionAdapter(java.lang.Class[] classes,
javolution.xml.XmlFormat[] formats)
Creates a new instance of JavolutionAdapter preconfigured with the provided XmlFormats. |
Method Summary | |
---|---|
java.lang.String |
getContentType()
|
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.BaseAdapter |
---|
handleClassLoaderChange, isSelfBuffered, requiresCustomEOFHandling |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavolutionAdapter()
public JavolutionAdapter(java.lang.Class[] classes, javolution.xml.XmlFormat[] formats)
classes
- array of classes for which custom XmlFormats are provided in the formats parameterformats
- array of XmlFormatsMethod Detail |
---|
public java.lang.Object read(java.io.InputStream in) throws java.lang.Exception
SerializeAdapter
in
- the input stream to use for deserialization
java.lang.Exception
public void write(java.lang.Object obj, java.io.OutputStream out) throws java.lang.Exception
SerializeAdapter
obj
- object that should get serializedout
- the outputstream into which the object should serialized
java.lang.Exception
public java.lang.String getContentType()
getContentType
in interface SerializeAdapter
getContentType
in class BaseAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |