|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.ObjectOutputStream
net.sf.fikin.classmarshaling.MarshaledObjectOutputStream
public class MarshaledObjectOutputStream
An ObjectOutputStream which is serializing the object
and its classes in two parallel output stream.
It uses a ClassSelector to choose which classes to serialize and
which not.
Used by MarshaledObject.MarshaledObject(Object, ClassSelector).
created on Aug 2, 2005
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.io.ObjectOutputStream |
|---|
java.io.ObjectOutputStream.PutField |
| Field Summary |
|---|
| Fields inherited from interface java.io.ObjectStreamConstants |
|---|
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING |
| Constructor Summary | |
|---|---|
MarshaledObjectOutputStream(java.io.OutputStream objOut,
java.io.OutputStream annOut,
ClassSelector selector)
Instantiate the output stream using one stream for the object itself and another stream for selected class bytecodes. |
|
| Method Summary | |
|---|---|
protected void |
annotateClass(java.lang.Class cl)
an overloaded ObjectOutputStream.annotateClass(Class),
serializing the class bytecode to the given to the constructor
stream |
void |
flush()
flush the streams call this before trying to obtain bytes from the output byte streams passed to the constructor this method can be called only once! |
protected void |
marshallClass(java.lang.Class cl)
marshal class's bytecode It does that only once per gven class |
| Methods inherited from class java.io.ObjectOutputStream |
|---|
annotateProxyClass, close, defaultWriteObject, drain, enableReplaceObject, putFields, replaceObject, reset, useProtocolVersion, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeClassDescriptor, writeDouble, writeFields, writeFloat, writeInt, writeLong, writeObject, writeObjectOverride, writeShort, writeStreamHeader, writeUnshared, writeUTF |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MarshaledObjectOutputStream(java.io.OutputStream objOut,
java.io.OutputStream annOut,
ClassSelector selector)
throws java.io.IOException
objOut - is the stream for the serialized objectannOut - is the stream for the serialized classes (a map)selector - used to select which class metadata to be marshaled together with the object
java.io.IOException - during stream writing| Method Detail |
|---|
public void flush()
throws java.io.IOException
call this before trying to obtain bytes from the output byte streams passed to the constructor this method can be called only once!
flush in interface java.io.Flushableflush in interface java.io.ObjectOutputflush in class java.io.ObjectOutputStreamjava.io.IOException - in case of internal error
protected void annotateClass(java.lang.Class cl)
throws java.io.IOException
ObjectOutputStream.annotateClass(Class),
serializing the class bytecode to the given to the constructor
stream
annotateClass in class java.io.ObjectOutputStreamcl - to serialize
java.io.IOExceptionprotected void marshallClass(java.lang.Class cl)
It does that only once per gven class
cl - to serialize
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||