|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
equip.runtime.ObjectOutputStream
EQUIP-specific serialisation output stream for writing
serialised instances of ValueBase to.
Used in place of ObjectOutputStream since
the serialisation is the same for EQUIP IDL-defined classes
in C++ as well.
| Field Summary | |
static short |
MAGIC
Internal constant - stream header magic number ('E','q') |
(package private) static byte |
TC_NULL
Internal constant - code for a null value |
(package private) static byte |
TC_OBJECT
Internal constant - code for an object |
(package private) static byte |
TC_STRING
Internal constant - code for a string |
static short |
VERSION
Internal constant - serialisation version |
| Fields inherited from class java.io.DataOutputStream |
written |
| Fields inherited from class java.io.FilterOutputStream |
out |
| Constructor Summary | |
ObjectOutputStream(java.io.OutputStream out)
Construct over a OutputStream.
|
|
| Method Summary | |
void |
writeObject(ValueBase object)
Write an object (subclass of ValueBase)
to the output stream; will write a nulls if provided. |
void |
writeObjectEnd()
Internal operation use by object serialisers |
void |
writeObjectStart()
Internal operation use by object serialisers |
void |
writeString(java.lang.String s)
Write a Java string; will send a null if provided |
| Methods inherited from class java.io.DataOutputStream |
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Methods inherited from class java.io.FilterOutputStream |
close, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.io.DataOutput |
write |
| Field Detail |
public static final short MAGIC
public static final short VERSION
static final byte TC_NULL
static final byte TC_OBJECT
static final byte TC_STRING
| Constructor Detail |
public ObjectOutputStream(java.io.OutputStream out)
throws java.io.IOException
OutputStream.
Note: like ObjectOutputStream, this
constructor immediately write header information to the output
stream and flush it; this information is required by the
corresponding ObjectInputStream.
java.io.IOException - Some internal problem (not likely).| Method Detail |
public void writeString(java.lang.String s)
throws java.io.IOException
java.io.IOException
public void writeObject(ValueBase object)
throws java.io.IOException
ValueBase)
to the output stream; will write a nulls if provided.
java.io.IOException - Miscellaneous problem, e.g. end of stream.
public void writeObjectStart()
throws java.io.IOException
java.io.IOException
public void writeObjectEnd()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||