Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

Sct.AbstractObjectManager Class Reference

Provides a simple implementation of some of the methods and notable adds simple construction using reflection. More...

Inheritance diagram for Sct.AbstractObjectManager:

Inheritance graph
[legend]
Collaboration diagram for Sct.AbstractObjectManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Streamable readObject (IStream s, String name) throws IOException
 A simple implementation that calss readClassName to get the className from the IStream then forwards to readObject(IStream s, String name, String className);.

Streamable readObject (IStream s, String name, String className) throws IOException
 Uses createObject to create a Streamable and read it in from the Stream.

void writeObject (OStream s, String name, Streamable object, boolean writeClassName) throws IOException
 A simple implementation - if writeClassName, calls writeClassName to write the className then class object.write(OStream s, this).


Protected Member Functions

Streamable createObject (IStream s, String className) throws IOException
 Creates the object with the className as given.

String readClassName (IStream in) throws IOException
 A simple method to read the className from the Stream This should be overridden if necessary by the implementation.

void writeClassName (OStream out, String className) throws IOException
 Writes a className.


Detailed Description

Provides a simple implementation of some of the methods and notable adds simple construction using reflection.

Implementors should feel free to override any/all (tho if all why use this!?) the methods.

Author:
Matthew Palmer

Definition at line 17 of file AbstractObjectManager.java.


Member Function Documentation

Streamable Sct.AbstractObjectManager.createObject IStream  s,
String  className
throws IOException [protected]
 

Creates the object with the className as given.

Uses the classLoader used to load this class.

Definition at line 50 of file AbstractObjectManager.java.

Referenced by Sct.AbstractObjectManager.readObject().

String Sct.AbstractObjectManager.readClassName IStream  in  )  throws IOException [protected]
 

A simple method to read the className from the Stream This should be overridden if necessary by the implementation.

It provides simple checking that ClassName returned is indeed a className and not something else!

Definition at line 107 of file AbstractObjectManager.java.

Referenced by Sct.File.ObjectManagerFile.readObject(), and Sct.AbstractObjectManager.readObject().

void Sct.AbstractObjectManager.writeClassName OStream  out,
String  className
throws IOException [protected]
 

Writes a className.

Goes together with readClassName and should be overriden if necessary.

Definition at line 120 of file AbstractObjectManager.java.

Referenced by Sct.File.ObjectManagerFile.writeObject(), and Sct.AbstractObjectManager.writeObject().


The documentation for this class was generated from the following file:
Generated on Thu Jul 15 09:56:35 2004 for SCT DAQ/DCS Software - Java by doxygen 1.3.5