| java.lang.Object com.ibm.richtext.styledtext.MCharBuffer com.ibm.richtext.styledtext.CharBuffer
Constructor Summary | |
public | CharBuffer() Create an empty char buffer. | public | CharBuffer(int capacity) Create a char buffer that can hold at least capacity chars. |
Method Summary | |
protected char[] | allocate(int minSize) Allocate a new character array of limit >= minSize. | protected int | allocation(int minSize) The resizing algorithm. | public char | at(int pos) Return the char at pos. | public void | at(int start, int limit, char[] dst, int dstStart) Copy the chars from start to limit to dst starting at dstStart. | final public int | capacity() Return the number of chars the buffer can hold before it must reallocate. | public void | compress() Minimize the storage used by the buffer. | public CharacterIterator | createCharacterIterator(int start, int limit) | final public int | length() Return the number of chars in the buffer. | public void | readExternal(ObjectInput in) | public void | replace(int start, int limit, char[] srcChars, int srcStart, int srcLimit) Replace the chars from start to limit with the chars from srcStart to srcLimit in srcChars. | public void | replace(int start, int limit, String srcString, int srcStart, int srcLimit) Replace the chars from start to limit with the chars from srcStart to srcLimit in srcString. | public void | replace(int start, int limit, MConstText srcText, int srcStart, int srcLimit) | public void | replace(int start, int limit, char srcChar) Replace the chars from start to limit with srcChar. | public void | reserveCapacity(int start, int capacity) Reserve capacity chars at start. | public String | toString() Display the buffer. | public void | writeExternal(ObjectOutput out) |
CharBuffer | public CharBuffer()(Code) | | Create an empty char buffer.
|
CharBuffer | public CharBuffer(int capacity)(Code) | | Create a char buffer that can hold at least capacity chars.
|
allocate | protected char[] allocate(int minSize)(Code) | | Allocate a new character array of limit >= minSize.
|
allocation | protected int allocation(int minSize)(Code) | | The resizing algorithm. Return a value >= minSize.
|
at | public char at(int pos)(Code) | | Return the char at pos.
|
at | public void at(int start, int limit, char[] dst, int dstStart)(Code) | | Copy the chars from start to limit to dst starting at dstStart.
|
capacity | final public int capacity()(Code) | | Return the number of chars the buffer can hold before it must reallocate.
|
compress | public void compress()(Code) | | Minimize the storage used by the buffer.
|
length | final public int length()(Code) | | Return the number of chars in the buffer.
|
replace | public void replace(int start, int limit, char[] srcChars, int srcStart, int srcLimit)(Code) | | Replace the chars from start to limit with the chars from srcStart to srcLimit in srcChars.
This is the core routine for manipulating the buffer.
|
replace | public void replace(int start, int limit, String srcString, int srcStart, int srcLimit)(Code) | | Replace the chars from start to limit with the chars from srcStart to srcLimit in srcString.
|
replace | public void replace(int start, int limit, MConstText srcText, int srcStart, int srcLimit)(Code) | | |
replace | public void replace(int start, int limit, char srcChar)(Code) | | Replace the chars from start to limit with srcChar.
|
reserveCapacity | public void reserveCapacity(int start, int capacity)(Code) | | Reserve capacity chars at start. Utility to optimize a sequence of operations at start.
|
Methods inherited from com.ibm.richtext.styledtext.MCharBuffer | abstract char at(int pos)(Code)(Java Doc) abstract void at(int start, int limit, char[] dst, int dstStart)(Code)(Java Doc) abstract int capacity()(Code)(Java Doc) abstract void compress()(Code)(Java Doc) abstract CharacterIterator createCharacterIterator(int start, int limit)(Code)(Java Doc) abstract int length()(Code)(Java Doc) abstract void replace(int start, int limit, MConstText text, int srcStart, int srcLimit)(Code)(Java Doc) abstract void replace(int start, int limit, char[] srcChars, int srcStart, int srcLimit)(Code)(Java Doc) abstract void replace(int start, int limit, String srcString, int srcStart, int srcLimit)(Code)(Java Doc) abstract void replace(int start, int limit, char srcChar)(Code)(Java Doc) abstract void reserveCapacity(int pos, int length)(Code)(Java Doc)
|
|
|