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

Sct.File.ObjectManagerFile Class Reference

The ObjectManager reads from binary files. More...

Inheritance diagram for Sct.File.ObjectManagerFile:

Inheritance graph
[legend]
Collaboration diagram for Sct.File.ObjectManagerFile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Streamable readObject (byte[] data, String className) throws java.io.IOException
 Read an object from a raw byte[] Useful for passing structures around over IPC!

Serializable readObject (String name) throws java.io.IOException
 Read a Serializable using the back-end specific identifier.

Serializable readObject (String uniqueID, String className) throws java.io.IOException
 Read a Serializable with uniqueID and className as given.

Name writeObject (Serializable object) throws java.io.IOException
 Write a Serializable object.


Static Public Member Functions

ObjectManagerFile getInstance ()
 Get the global instance of the File IO Manager.


Static Private Attributes

ObjectManagerFile instance

Detailed Description

The ObjectManager reads from binary files.

It should use exactly the same format as the C++ code!

Author:
Matthew Palmer

Definition at line 15 of file ObjectManagerFile.java.


Member Function Documentation

Serializable Sct.File.ObjectManagerFile.readObject String  uniqueID,
String  className
throws java.io.IOException
 

Read a Serializable with uniqueID and className as given.

Exceptions:
IOException if a problem occurs during IO

Implements Sct.ObjectManager.

Definition at line 39 of file ObjectManagerFile.java.

References Sct.File.ObjectManagerFile.readObject().

Here is the call graph for this function:

Serializable Sct.File.ObjectManagerFile.readObject String  name  )  throws java.io.IOException
 

Read a Serializable using the back-end specific identifier.

Exceptions:
IOException if a problem occurs during IO

Implements Sct.ObjectManager.

Definition at line 34 of file ObjectManagerFile.java.

References Sct.AbstractObjectManager.readClassName().

Here is the call graph for this function:

Name Sct.File.ObjectManagerFile.writeObject Serializable  object  )  throws java.io.IOException
 

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 43 of file ObjectManagerFile.java.

References Sct.File.OStreamFile.close(), and Sct.AbstractObjectManager.writeClassName().

Here is the call graph for this function:


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