|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.netseeker.ejoe.adapter.BaseAdapter
de.netseeker.ejoe.adapter.JavaBeansXmlAdapter
public class JavaBeansXmlAdapter
Simple SerializeAdapter implementation using the XmlEncoder/XmlDecoder classes of the Java Beans API
| Constructor Summary | |
|---|---|
JavaBeansXmlAdapter()
|
|
| Method Summary | |
|---|---|
void |
exceptionThrown(java.lang.Exception e)
|
java.lang.String |
getContentType()
|
boolean |
isSelfBuffered()
Indicates that the adapter uses a StreamBuffer mechanism and doesn't require a buffered input stream |
java.lang.Object |
read(java.io.InputStream in)
Deserializes an object out of an given InputStream |
boolean |
requiresCustomEOFHandling()
Signals if this adapter has problems with EJOE's UncloseableInputStreams and requires a really closed Stream (which EJOE prevents to ensure that an adapter can not close the underlying socket unintentionally). |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaBeansXmlAdapter()
| Method Detail |
|---|
public java.lang.Object read(java.io.InputStream in)
throws java.lang.Exception
SerializeAdapter
read in interface SerializeAdapterin - 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
write in interface SerializeAdapterobj - object that should get serializedout - the outputstream into which the object should serialized
java.lang.Exceptionpublic void exceptionThrown(java.lang.Exception e)
exceptionThrown in interface java.beans.ExceptionListenerpublic boolean requiresCustomEOFHandling()
SerializeAdapter
requiresCustomEOFHandling in interface SerializeAdapterrequiresCustomEOFHandling in class BaseAdapterpublic boolean isSelfBuffered()
SerializeAdapter
isSelfBuffered in interface SerializeAdapterisSelfBuffered in class BaseAdapterpublic java.lang.String getContentType()
getContentType in interface SerializeAdaptergetContentType in class BaseAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||