|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpalmed.buffer.RecordBuffer
public final class RecordBuffer
This class provides an adapter between records and buffers.
| Constructor Summary | |
|---|---|
RecordBuffer(IRecordFactory factory,
ITextBox textBox)
Create a record buffer. |
|
| Method Summary | |
|---|---|
void |
delete()
Delete the buffer. |
boolean |
hasBeenModified()
Test if the buffer has been modified. |
boolean |
hasFile(IFile file)
Test if the given file is handled by the buffer. |
void |
marshall(java.io.OutputStream stream)
Write to an output stream. |
void |
open(IFile file)
Open the given file. |
void |
persist()
Save the record. |
void |
readReference(java.io.InputStream stream)
Read from an input stream. |
void |
restore()
Load the record. |
boolean |
save()
Save the file. |
void |
save(IFile file)
Save into the given file. |
void |
unmarshall(java.io.InputStream stream)
Read from an input stream. |
void |
writeReference(java.io.OutputStream stream)
Write to an output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecordBuffer(IRecordFactory factory,
ITextBox textBox)
factory - the record factorytextBox - the text box| Method Detail |
|---|
public void open(IFile file)
open in interface IBufferfile - the file to read frompublic boolean save()
This operation must fail if no file is associated to the buffer.
save in interface IBufferpublic void save(IFile file)
save in interface IBufferfile - the file to write intopublic boolean hasBeenModified()
hasBeenModified in interface IBufferpublic boolean hasFile(IFile file)
hasFile in interface IBufferfile - the file
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 occurspublic void persist()
persist in interface IRecordpublic void restore()
restore in interface IRecordpublic void delete()
delete in interface IBufferdelete in interface IRecord
public void readReference(java.io.InputStream stream)
throws java.io.IOException
readReference in interface IRecordBufferstream - the stream to read from
java.io.IOException - an io exception occurs
public void writeReference(java.io.OutputStream stream)
throws java.io.IOException
writeReference in interface IRecordBufferstream - 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 | |||||||||