|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectthings.universe.UniverseObjectAccessor
public class UniverseObjectAccessor
This is a cheap access for a file. Only one access allowed at a time! It will lock the object.
You are at the mercy of the implementation in terms of multi-threading.
Version History
EPG - Initial - 13 JAN 05
| Constructor Summary | |
|---|---|
UniverseObjectAccessor(Universe theUniverse,
java.lang.String... name)
Constructor. |
|
| Method Summary | |
|---|---|
void |
doneWithRead(java.io.InputStream ios)
Declare you are done reading from the input stream. |
void |
doneWithWrite(java.io.OutputStream oos)
Declare you are done reading from the input stream. |
java.io.InputStream |
openForRead()
Open the item for read. |
java.io.OutputStream |
openForWrite()
Open the item for writing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UniverseObjectAccessor(Universe theUniverse,
java.lang.String... name)
throws ThingsException
name - name of the universe object.theUniverse - the universe in which it exists.
ThingsException| Method Detail |
|---|
public java.io.InputStream openForRead()
throws ThingsException
openForRead in interface AccessorThingsException - for any problem.
public void doneWithRead(java.io.InputStream ios)
throws ThingsException
doneWithRead in interface Accessorios - the stream you were given when you openForRead(). You may close the stream already, if you want.
ThingsException - for any problem.
public java.io.OutputStream openForWrite()
throws ThingsException
openForWrite in interface AccessorThingsException - for any problem.
public void doneWithWrite(java.io.OutputStream oos)
throws ThingsException
doneWithWrite in interface Accessoroos - the stream you were given when you openForWrite(). You may flush and close the stream already, if you want.
ThingsException - for any problem.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||