GuiComponents.Inspector.StreamableRep Class Reference

Inheritance diagram for GuiComponents.Inspector.StreamableRep:

Inheritance graph
[legend]
Collaboration diagram for GuiComponents.Inspector.StreamableRep:

Collaboration graph
[legend]
List of all members.

Public Member Functions

String toString ()
String getName ()
String getClassName ()
String getValue ()
Name writeObject (Serializable object)
 Write a Serializable object.
void writeObject (OStream s, String name, Streamable object, boolean writeClassName)
 Write an object to the OStream.
void writeBoolean (String name, boolean b)
void writeBooleanArray (String name, boolean[] b)
void writeByte (String name, byte b, boolean sign)
void writeByteArray (String name, byte[] b, boolean sign)
void writeDouble (String name, double d)
void writeDoubleArray (String name, double[] d)
void writeFloat (String name, float f)
void writeFloatArray (String name, float[] f)
void writeInt (String name, int i, boolean sign)
void writeIntArray (String name, int[] i, boolean sign)
void writeShort (String name, short s, boolean sign)
void writeShortArray (String name, short[] s, boolean sign)
void writeString (String name, String s)
void writeStringArray (String name, String[] s)
Sct.Serializable readObject (String name) throws UnsupportedOperationException
 Read a Serializable using the back-end specific identifier.
Sct.Streamable readObject (IStream s, String name) throws UnsupportedOperationException
 Read an object from an IStream.
Sct.Serializable readObject (String uniqueID, String className) throws UnsupportedOperationException
 Read a Serializable with uniqueID and className as given.
Sct.Streamable readObject (IStream s, String name, String className) throws UnsupportedOperationException
 Read an object from an IStream.
void writeLong (String name, long i, boolean sign) throws java.io.IOException
void writeLongArray (String name, long[] i, boolean sign) throws java.io.IOException

Protected Attributes

ArrayList streamables = new ArrayList()
ArrayList primitives = new ArrayList()
String className
String name

Package Functions

 StreamableRep (String name, Serializable ob)
 Used to implement lazy writing.
 StreamableRep (String name, Streamable ob)
int getChildCount ()
Rep getChild (int index)

Private Member Functions

void writeChildren ()

Private Attributes

Streamable object
boolean written = false

Detailed Description

Definition at line 74 of file StreamableRep.java.


Member Function Documentation

Sct.Streamable GuiComponents.Inspector.StreamableRep.readObject IStream  s,
String  name,
String  className
throws UnsupportedOperationException
 

Read an object from an IStream.

This method should be used if the object was written with writeClassName = false. Creates the object from the IStream

See also:
Streamable documentation
Parameters:
s the IStream being read from in the current context.
name the name of the object in the current context. Should match the name passed to writeObject.
className the name of a class capable of streaming in the object.
Exceptions:
IOException if a problem occurs during IO

Implements Sct.ObjectManager.

Definition at line 229 of file StreamableRep.java.

Sct.Serializable GuiComponents.Inspector.StreamableRep.readObject String  uniqueID,
String  className
throws UnsupportedOperationException
 

Read a Serializable with uniqueID and className as given.

Exceptions:
IOException if a problem occurs during IO

Implements Sct.ObjectManager.

Definition at line 225 of file StreamableRep.java.

Sct.Streamable GuiComponents.Inspector.StreamableRep.readObject IStream  s,
String  name
throws UnsupportedOperationException
 

Read an object from an IStream.

This method should be used if the object was written with writeClassName = true. First reads the className from the stream. Creates the object from the IStream

See also:
Streamable documentation
Parameters:
s the IStream being read from in the current context.
name the name of the object in the current context. Should match the name passed to writeObject.
Exceptions:
IOException if a problem occurs during IO

Implements Sct.ObjectManager.

Definition at line 221 of file StreamableRep.java.

Sct.Serializable GuiComponents.Inspector.StreamableRep.readObject String  name  )  throws UnsupportedOperationException
 

Read a Serializable using the back-end specific identifier.

Exceptions:
IOException if a problem occurs during IO

Implements Sct.ObjectManager.

Definition at line 217 of file StreamableRep.java.

void GuiComponents.Inspector.StreamableRep.writeObject OStream  s,
String  name,
Streamable  object,
boolean  writeClassName
 

Write an object to the OStream.

Class object's write method. object may not be null. Causes a WriteAbortedException if it is.

Parameters:
s the OStream being used (note, not guranteed to be passed to object's write method)
name the name of the object in the current context.
writeClassName if true the className will be written.
Exceptions:
IllegalArgumentException if object is null
IOException if a problem occurs during IO

Implements Sct.ObjectManager.

Definition at line 151 of file StreamableRep.java.

Name GuiComponents.Inspector.StreamableRep.writeObject Serializable  object  ) 
 

Write a Serializable object.

Todo:
Should this take an extra back-end dependant parameter?
Returns:
a Name object that can be used to read the written object
Exceptions:
IOException if a problem occurs during IO

Implements Sct.ObjectManager.

Definition at line 142 of file StreamableRep.java.


The documentation for this class was generated from the following file:
Generated on Mon Feb 6 14:13:56 2006 for SCT DAQ/DCS Software - Java by  doxygen 1.4.6