StringBuilder, except that it can be used to
construct multiple Strings, that will share same underlying character
buffer. This is generally useful for closely related value Strings,
such as attribute values of a single XML start element.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private char[] | |
| private int | |
| private static final int | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public char[] | |
| public String | |
| public char[] | |
| public int | |
| public boolean | |
| public void | reset()
Method called before starting to (re)use the buffer, will discard any existing content, and start collecting new set of values. |
| private void | |
| public void | |
| public String |
| MAX_LEN | back to summary |
|---|---|
| private static final int MAX_LEN | |
| mBuffer | back to summary |
|---|---|
| private char[] mBuffer | |
| mBufferLen | back to summary |
|---|---|
| private int mBufferLen | |
| MIN_LEN | back to summary |
|---|---|
| private static final int MIN_LEN | |
| mResultString | back to summary |
|---|---|
| private String mResultString | |
| TextBuilder | back to summary |
|---|---|
| public TextBuilder(int initialSize) | |
| append | back to summary |
|---|---|
| public void append(char c) | |
| append | back to summary |
|---|---|
| public void append(char[] src, int start, int len) | |
| bufferFull | back to summary |
|---|---|
| public char[] bufferFull(int needSpaceFor) | |
| getAllValues | back to summary |
|---|---|
| public String getAllValues() | |
| getCharBuffer | back to summary |
|---|---|
| public char[] getCharBuffer() Method that gives access to underlying character buffer | |
| getCharSize | back to summary |
|---|---|
| public int getCharSize() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| reset | back to summary |
|---|---|
| public void reset() Method called before starting to (re)use the buffer, will discard any existing content, and start collecting new set of values. | |
| resize | back to summary |
|---|---|
| private void resize(int needSpaceFor) | |
| setBufferSize | back to summary |
|---|---|
| public void setBufferSize(int newSize) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |