|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used to store and retrieve character sequences. The primary use is for a literal data buffer where we can construct the values for literal entity replacement text. When all of the characters for the replacement text have been added to the buffer, the contents are added to the string pool for later use in constructing a StringReader if the entity is referenced.
Method Summary | |
---|---|
int |
addString(int offset,
int length)
Add a region of this buffer to the string pool. |
void |
append(char ch)
Append a character to this buffer. |
void |
append(char[] chars,
int offset,
int length)
Append characters to this buffer. |
int |
length()
Get the current length of the buffer. |
Method Detail |
public void append(char ch)
ch
- The character.public void append(char[] chars, int offset, int length)
chars
- The char array containing the characters.offset
- The offset within the char array of the first character to append.length
- The number of characters to append.public int length()
public int addString(int offset, int length)
offset
- The offset within this buffer of the first character of the string.length
- The number of characters in the string.StringPool
handle of the string.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |