|
Mobios v0.91 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectIOManager
This is an interface for object input/output management. An implementation of this interface should be backed by a stream (file, memory, socket...). It should be able to do I/O of object on the stream.
Method Summary | |
---|---|
void |
close()
Closes the backing stream. |
void |
flush()
Flushes the backing stream. |
Iterator |
iterator()
|
boolean |
open()
Opens the backing stream. |
Object |
readObject(long pointer)
Reads a previously written object at a given position. |
Object |
readPersistObject(long pointer)
Reads a previously written object at a given position, and holds this object in memory for the duration of the program. |
Object |
removeObject(long pointer)
Deletes an object from the underlying stream. |
long |
size()
|
long |
writeObject(Object object)
Writes a new object to the underlying stream. |
Object |
writeObject(Object object,
long pointer)
Writes an object to a given position in the underlying stream. |
Method Detail |
---|
boolean open()
void flush() throws IOException
IOException
void close()
Object readObject(long pointer) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
pointer
- the pointer to the object to be read from the underlying stream. The value is returned
when the object is first written to the stream with
writeObject(java.lang.Object, long)
IOException
ClassNotFoundException
InstantiationException
IllegalAccessException
Object readPersistObject(long pointer) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
pointer
- the pointer to the object to be read in the underlying stream. The value is returned
when the object is first written to the stream with
writeObject(java.lang.Object, long)
IOException
ClassNotFoundException
InstantiationException
IllegalAccessException
Object writeObject(Object object, long pointer) throws IOException, ClassNotFoundException
object
- the object to be written, cannot be null.pointer
- pointer to the underlying stream
IOException
ClassNotFoundException
long writeObject(Object object) throws IOException
object
- the object to be added to the stream
IOException
Object removeObject(long pointer) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
pointer
- pointer to the object to be deleted in the underlying stream.
IOException
ClassNotFoundException
InstantiationException
IllegalAccessException
long size() throws IOException
IOException
Iterator iterator()
Iterator
over all of the Area
s in the store
|
Mobios v0.91 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |