com.borland.primetime.vfs
Interface BufferUpdater

All Known Implementing Classes:
Buffer

public interface BufferUpdater

BufferUpdater implementations provide a lazy mechanism for modifying the contents of a VFS buffer. Rather than actually flushing a full buffer of changes to the VFS for each change, a writer can call Buffer.setContent(BufferUpdater) and supply an object that is capable of providing the full update on demand.

The content must be available on demand at any time once a BufferUpdater has been used to modify the state of a buffer. The Buffer methods updateContent() and updateModifiedBuffers() may be used to force one or all buffers to use and discard their BufferUpdater references.

See Also:
Buffer

Method Summary
 byte[] getBufferContent(Buffer buffer)
          Requests the full updated content of the buffer as a byte array from the BufferUpdater.
 

Method Detail

getBufferContent

public byte[] getBufferContent(Buffer buffer)
Requests the full updated content of the buffer as a byte array from the BufferUpdater.
Parameters:
Buffer - The buffer requesting the update.
Returns:
A non-null byte array representing the new buffer contents.