|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpalmed.buffer.RecordBufferManager
public final class RecordBufferManager
This class provides multi-buffer support using records.
Constructor Summary | |
---|---|
RecordBufferManager(IBufferFactory factory)
Create a buffer manager. |
Method Summary | |
---|---|
void |
close()
Close the current buffer. |
boolean |
hasBeenModified()
Test if the current buffer has been modified. |
void |
marshall(java.io.OutputStream stream)
Write to an output stream. |
void |
next()
Switch to the next buffer. |
void |
open()
Open an empty buffer. |
void |
open(IFile file)
Open the given file in a buffer. |
void |
previous()
Switch to the previous buffer. |
boolean |
save()
Save the file in the current buffer. |
void |
save(IFile file)
Save the current buffer into the given file. |
void |
unmarshall(java.io.InputStream stream)
Read from an input stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecordBufferManager(IBufferFactory factory)
factory
- the buffer factoryMethod Detail |
---|
public void previous()
previous
in interface IBufferManager
public void next()
next
in interface IBufferManager
public void open()
open
in interface IBufferManager
public void open(IFile file)
open
in interface IBufferManager
file
- the file to read frompublic void close()
close
in interface IBufferManager
public boolean save()
This operation must fail if no file is associated to the buffer.
save
in interface IBufferManager
public void save(IFile file)
save
in interface IBufferManager
file
- the file to write intopublic boolean hasBeenModified()
hasBeenModified
in interface IBufferManager
public void unmarshall(java.io.InputStream stream) throws java.io.IOException
unmarshall
in interface ISerializable
stream
- the stream to read from
java.io.IOException
- an io exception occurspublic void marshall(java.io.OutputStream stream) throws java.io.IOException
marshall
in interface ISerializable
stream
- the stream to write to
java.io.IOException
- an io exception occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |