TextBuffer
package assists in the manipulation of in-memory text content, whether it is read-only text, or read-write text.See: Description
Interface | Description |
---|---|
GuardedTextBufferListener |
Listener to be notified when the guarded sections of a GuardedTextBuffer have changed.
|
LineMap |
A
LineMap is an interface for accessing the line structure information of a TextBuffer . |
OffsetMark |
The
OffsetMark is used by the TextBuffer to provide bookmark services. |
ReadTextBuffer |
The
ReadTextBuffer interface provides a subset of the TextBuffer methods for read-only access to text data. |
ReadWriteLockImplementation | |
TextBuffer |
The
TextBuffer interface describes a class which can be used for managing the raw text content of a document. |
TextBufferListener |
The
TextBufferListener interface should be implemented by observers interested in receiving notifications of changes to the associated TextBuffer . |
WriteLockRequestListener |
A listener notified by a
ReadWriteLock when a thread requests a write lock. |
Class | Description |
---|---|
AbstractTextBuffer |
The
AbstractTextBuffer class is a starting point for classes implementing the TextBuffer interface. |
AbstractTextBuffer.UndoState |
The UndoState is a layer of indirection between the TextBuffer and UndoableTextEdit's to allow undo's to be detached from the TextBuffer and reattach to a TextBuffer with the same buffer contents.
|
CharArrayReadTextBuffer |
The
CharArrayReadTextBuffer is a wrapper implementation that provides a ReadTextBuffer interface on top of a String datasource. |
ForwardingTextBufferListener |
A support class to forward text buffer events for a decorating text buffer.
|
GuardedTextBuffer |
A TextBuffer that decorates another TextBuffer to prevent modification in certain 'guarded' regions.
|
MultiLock |
Acquires and releases a set of
ReadWriteLock as a unit. |
OffsetMarkComparator |
Compares two OffsetMarks to determine their order with respect to both offset and bias.
|
OffsetRegion |
A contiguous section of offsets in a TextBuffer.
|
OffsetRegionChain |
A mutable collection of regions, each bounded by OffsetMarks.
|
ReadTextBufferDecorator |
The
ReadTextBufferDecorator is a base decorator for a ReadTextBuffer . |
ReadWriteLock |
The
ReadWriteLock class is an implementation of a reentrant multiple-reader/single-writer lock. |
SafeArrayList |
The
SafeArrayList is an array List implementation that provides basic thread-safety by implementing a copy-on-write scheme. |
SafeArrayList.SafeListIterator |
A list iterator implementation based on a static array.
|
TextBufferDecorator |
The
TextBufferDecorator is a base decorator for a TextBuffer . |
TextBufferFactory |
The
TextBufferFactory is a static factory class for creating TextBuffer instances for use. |
Util |
Buffer related utilities.
|
Utilities |
The
Utilities is a static utility class for TextBuffer instances. |
Enum | Description |
---|---|
ReadWriteLock.Implementation |
An enumeration of the implementation types for a ReadWriteLock.
|
ReadWriteLock.Options |
An enumeration of the configuration options for a ReadWriteLock.
|
Exception | Description |
---|---|
ExpiredTextBufferException |
An
ExpiredTextBufferException is thrown when clients attempt to access an ExpirableTextBufferSnapshot after that snapshot has expired, due to the underlying text buffer being modified. |
GuardedException |
Exception thrown when an attempt is made to modify an offset in guarded section of a buffer.
|
ReadOnlyException |
An
ReadOnlyException is thrown when clients attempt to modify a TextBuffer instance marked as read only. |
The TextBuffer
package assists in the manipulation of in-memory text content, whether it is read-only text, or read-write text. All text data is stored in normal Java Unicode format as a sequence of char
's.
Text buffers can be accessed through two interfaces:
ReadTextBuffer
: The first interface provides read-only access to the contents of the text buffer.TextBuffer
: The second interface provides full read-write access to the contents of the text buffer.To create a TextBuffer
instance or ReadTextBuffer
, use the TextBufferFactory
factory class. For more details about how to use this package, please refer to the JavaDoc for these two interfaces.