|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Marshaler
A marshaller, which handles the serialization and deserialization of objects.
Method Summary | |
---|---|
void |
close()
Close the underlying transport and prepare the marshaler for calling setup(OutputStream, InputStream, ClassLoader) again. |
java.lang.Object |
readObject()
Read the next object from the input stream. |
void |
reset()
Reset the state of the serializer. |
void |
setup(java.io.OutputStream os,
java.io.InputStream is,
java.lang.ClassLoader inputClassLoader)
Set up the marshaler for operation. |
void |
writeObject(java.lang.Object obj)
Write an object to the underlying transport. |
Method Detail |
---|
void setup(java.io.OutputStream os, java.io.InputStream is, java.lang.ClassLoader inputClassLoader) throws java.io.IOException
os
- The output stream to write to.is
- The input stream to read from.inputClassLoader
- The ClassLoader to use for deserialized instances.
java.io.IOException
- Upon errors setting up the streams.java.lang.Object readObject() throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
- If the underlying class loader was unable
to find the class of a serialized object.
java.io.IOException
- Upon transport errors.void writeObject(java.lang.Object obj) throws java.io.IOException
obj
- The object to write.
java.io.IOException
- Upon transport errors.void reset() throws java.io.IOException
java.io.IOException
- Upon transport errors.void close()
setup(OutputStream, InputStream, ClassLoader)
again.
This method should be implemented in a fashion that is tolerant for an
incomplete setup of the marshaler. It should even be possible to call
close() twice on a single marshaler object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |