|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| 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 factory| Method Detail |
|---|
public void previous()
previous in interface IBufferManagerpublic void next()
next in interface IBufferManagerpublic void open()
open in interface IBufferManagerpublic void open(IFile file)
open in interface IBufferManagerfile - the file to read frompublic void close()
close in interface IBufferManagerpublic boolean save()
This operation must fail if no file is associated to the buffer.
save in interface IBufferManagerpublic void save(IFile file)
save in interface IBufferManagerfile - 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 ISerializablestream - the stream to read from
java.io.IOException - an io exception occurs
public void marshall(java.io.OutputStream stream)
throws java.io.IOException
marshall in interface ISerializablestream - the stream to write to
java.io.IOException - an io exception occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||