CharAppender that expands the internal buffer of characters as required.
| Modifier and Type | Field and Description |
|---|---|
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | ExpandingCharAppender(String
default value to return when no characters have been accumulated emptyValue, int starting range of characters considered to be whitespace. whitespaceRangeStart)Creates an |
| public | ExpandingCharAppender(int
the initial length of the internal buffer. initialBufferLength, String default value to return when no characters have been accumulated emptyValue, int starting range of characters considered to be whitespace. whitespaceRangeStart)Creates an |
| Modifier and Type | Method and Description |
|---|---|
| public void | append(char
the character to append ch)Overrides com. Implements com. |
| public final void | append(DefaultCharAppender
The DefaultCharAppender instance got get contents from. appender)Overrides com. |
| public final void | append(char[]
the character array ch, int the position of the first character in the array to be appended from, int the number of characters to be appended from the given posiion. length)Overrides com. Implements com. |
| public final void | append(String
the string whose characters will be appended. string, int the index of the first character to append from, int the index of the last character to append to)Overrides com. Implements com. |
| public void | appendIgnoringPadding(char
character to append ch, char the padding character to ignore padding)Overrides com. Implements com. |
| public void | appendIgnoringWhitespace(char
character to append ch)Overrides com. Implements com. ch <= ' ')
|
| public void | appendIgnoringWhitespaceAndPadding(char
character to append ch, char the padding character to ignore padding)Overrides com. Implements com. ch <= ' ') or a padding character (the definition of a padding character is implementation dependent.)
|
| public final char | appendUntil(char
the first character of the input to be appended. ch, CharInput the input whose the following characters will be appended input, char the stop character stop)Overrides com. Implements com. |
| public final char | appendUntil(char
the first character of the input to be appended. ch, CharInput the input whose the following characters will be appended input, char the first stop character stop1, char the second stop character stop2)Overrides com. Implements com. |
| public final char | appendUntil(char
the first character of the input to be appended. ch, CharInput the input whose the following characters will be appended input, char the first stop character stop1, char the second stop character stop2, char the third stop character stop3)Overrides com. Implements com. |
| private void | |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final void | |
| public final void | fill(char
the character to append ch, int the number of times the given character should be appended. length)Overrides com. Implements com. |
| public final void | prepend(char
the character to prepend in front of the current accumulated value. ch)Overrides com. Implements com. |
| public final void | prepend(char
the first character to prepend in front of the current accumulated value. ch1, char the second character to prepend in front of the current accumulated value. ch2)Overrides com. Implements com. |
| public final void | prepend(char[]
the character sequence to prepend in front of the current accumulated value. chars)Overrides com. Implements com. |
| MAX_ARRAY_LENGTH | back to summary |
|---|---|
| private static final int MAX_ARRAY_LENGTH | |
| ExpandingCharAppender | back to summary |
|---|---|
| public ExpandingCharAppender(String emptyValue, int whitespaceRangeStart) Creates an
| |
| ExpandingCharAppender | back to summary |
|---|---|
| public ExpandingCharAppender(int initialBufferLength, String emptyValue, int whitespaceRangeStart) Creates an
| |
| append | back to summary |
|---|---|
| public void append(char ch) Overrides com. Implements com. Doc from com. Appends the given character.
| |
| append | back to summary |
|---|---|
| public final void append(DefaultCharAppender appender) Overrides com. Doc from com. Appends the contents of another DefaultCharAppender, discarding any of its trailing whitespace characters
| |
| append | back to summary |
|---|---|
| public final void append(char[] ch, int from, int length) Overrides com. Implements com. Doc from com. Appends characters from an input array
| |
| append | back to summary |
|---|---|
| public final void append(String string, int from, int to) Overrides com. Implements com. Doc from com. Appends the contents of a String to this appender
| |
| appendIgnoringPadding | back to summary |
|---|---|
| public void appendIgnoringPadding(char ch, char padding) Overrides com. Implements com. Doc from com. Appends the given character and marks it as ignored if it is a padding character (the definition of a padding character is implementation dependent.)
| |
| appendIgnoringWhitespace | back to summary |
|---|---|
| public void appendIgnoringWhitespace(char ch) Overrides com. Implements com. Doc from com. Appends the given character and marks it as ignored if it is a whitespace (
| |
| appendIgnoringWhitespaceAndPadding | back to summary |
|---|---|
| public void appendIgnoringWhitespaceAndPadding(char ch, char padding) Overrides com. Implements com. Doc from com. Appends the given character and marks it as ignored if it is a whitespace (
| |
| appendUntil | back to summary |
|---|---|
| public final char appendUntil(char ch, CharInput input, char stop) Overrides com. Implements com. Doc from com. Appends characters from the input, until a stop character is found
| |
| appendUntil | back to summary |
|---|---|
| public final char appendUntil(char ch, CharInput input, char stop1, char stop2) Overrides com. Implements com. Doc from com. Appends characters from the input, until a stop character is found
| |
| appendUntil | back to summary |
|---|---|
| public final char appendUntil(char ch, CharInput input, char stop1, char stop2, char stop3) Overrides com. Implements com. Doc from com. Appends characters from the input, until a stop character is found
| |
| expand | back to summary |
|---|---|
| private void expand(int additionalLength, double factor) | |
| expand | back to summary |
|---|---|
| pack-priv final void expand() | |
| expand | back to summary |
|---|---|
| pack-priv final void expand(int additionalLength) | |
| expandAndRetry | back to summary |
|---|---|
| pack-priv final void expandAndRetry() | |
| fill | back to summary |
|---|---|
| public final void fill(char ch, int length) Overrides com. Implements com. Doc from com. Adds a sequence of repeated characters to the input.
| |
| prepend | back to summary |
|---|---|
| public final void prepend(char ch) Overrides com. Implements com. Doc from com. Prepends the current accumulated value with a character
| |
| prepend | back to summary |
|---|---|
| public final void prepend(char ch1, char ch2) Overrides com. Implements com. Doc from com. Prepends the current accumulated value with a couple of characters
| |
| prepend | back to summary |
|---|---|
| public final void prepend(char[] chars) Overrides com. Implements com. Doc from com. Prepends the current accumulated value a sequence of characters
| |