|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The listener interface for receiving buffer events. The class that is
interested in processing a buffer events implements this interface, and
objects created with that class can be registered with a buffer, using the
buffer's addBufferListener
method.
Method Summary | |
void |
bufferChanged(Buffer buffer,
BufferUpdater updater)
Invoked when the content of a buffer is changed. |
void |
bufferLoaded(Buffer buffer)
Invoked after the content of the buffer has changed because the buffer has been updated from persistant storage. |
void |
bufferSaving(Buffer buffer)
Invoked immediately before the content of the buffer is saved to persistant storage. |
void |
bufferStateChanged(Buffer buffer,
int oldState,
int newState)
Invoked when any of the state flags on a buffer changes. |
Method Detail |
public void bufferChanged(Buffer buffer, BufferUpdater updater)
buffer
- The Buffer instance that has changed.updater
- The BufferUpdater instance used to make a lazy change, or
null if the change was made to the buffer by streaming I/O or byte array
replacement.public void bufferLoaded(Buffer buffer)
buffer
- The Buffer instance that has changed.public void bufferSaving(Buffer buffer)
buffer
- The Buffer instance that is being saved.public void bufferStateChanged(Buffer buffer, int oldState, int newState)
buffer
- The Buffer instance that has changed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |