Inheritance diagram for Sct.AbstractObjectManager:
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. |
Implementors should feel free to override any/all (tho if all why use this!?) the methods.
Definition at line 17 of file AbstractObjectManager.java.
|
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(). |
|
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(). |
|
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(). |