|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SerializeAdapter
Interface defining all methods required by a (de)serialize adapter.
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
|
void |
handleClassLoaderChange(java.lang.ClassLoader classLoader)
Signals a change of the ContextClassLoader of the current thread to the adapter. |
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 |
| Method Detail |
|---|
java.lang.Object read(java.io.InputStream in)
throws java.lang.Exception
in - the input stream to use for deserialization
java.lang.Exception
void write(java.lang.Object obj,
java.io.OutputStream out)
throws java.lang.Exception
obj - object that should get serializedout - the outputstream into which the object should serialized
java.lang.Exceptionvoid handleClassLoaderChange(java.lang.ClassLoader classLoader)
classLoader - boolean requiresCustomEOFHandling()
boolean isSelfBuffered()
java.lang.String getContentType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||