CharAppender that does nothing. Used by ParserOutput to transparently discard any unwanted input while parsing.
com.univocity.parsers.common.ParserOutput , com.univocity.parsers.common.input.CharAppender
| Modifier and Type | Field and Description |
|---|---|
| private static final NoopCharAppender |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | append(char
the character to append ch)Implements com. |
| public 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)Implements com. |
| public void | append(char[]
the character array ch)Implements com. |
| public void | append(String
the input String string)Implements com. |
| public 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)Implements com. |
| public void | append(int
the codepoint to append ch)Implements com. |
| public void | append(int[]
the codepoint array ch)Implements com. |
| public void | append(Object
the object whose obj)String representation will be appended.Implements com. |
| public void | appendIgnoringPadding(char
character to append ch, char the padding character to ignore padding)Implements com. |
| public void | appendIgnoringWhitespace(char
character to append ch)Implements com. |
| public void | appendIgnoringWhitespaceAndPadding(char
character to append ch, char the padding character to ignore padding)Implements com. |
| public 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)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)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)Implements com. |
| public char | charAt(int
the index of the i)char value to be returnedImplements java. |
| public void | delete(int
the number of characters to delete. count)Implements com. |
| public void | fill(char
the character to append ch, int the number of times the given character should be appended. length)Implements com. |
| public String | Returns: null as this appender does nothing.Implements com. |
| public char[] | |
| public char[] | Returns: null as this appender does nothing.Implements com. |
| public static CharAppender | Returns: the singleton instance of NoopCharAppenderReturns the singleton instance of NoopCharAppender |
| public void | ignore(int
the number of characters to ignore count)Implements com. |
| public int | indexOf(char
the character to look for ch, int the starting index from where the search will begin. from)Implements com. |
| public int | indexOf(char[]
the character sequence to look for charSequence, int the starting index from where the search will begin. from)Implements com. |
| public int | indexOf(CharSequence
the character sequence to look for charSequence, int the starting index from where the search will begin. from)Implements com. |
| public int | indexOfAny(char[]
the characters to look for chars, int the starting index from where the search will begin. from)Implements com. |
| public boolean | isEmpty()
Implements com. true as it's always empty.
|
| public int | lastIndexOf(char
the character to look for ch)Implements com. |
| public int | Returns: -1 as this appender does nothing.Implements com. |
| public void | prepend(char
the character to prepend in front of the current accumulated value. ch)Implements com. |
| public 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)Implements com. |
| public void | prepend(char[]
the character sequence to prepend in front of the current accumulated value. chars)Implements com. |
| public void | remove(int
the starting position in the buffer (inclusive) from, int the number of characters to accumulate from the given start position length)Implements com. |
| public void | |
| public void | resetWhitespaceCount()
Implements com. |
| public CharSequence | subSequence(int
the start index, inclusive i, int the end index, exclusive i1)Implements java. |
| public String | substring(int
the starting position in the buffer from, int the number of characters to accumulate from the given start position length)Implements com. |
| public void | updateWhitespace()
Implements com. |
| public int | Returns: 0 as this appender does nothing.Implements com. |
| instance | back to summary |
|---|---|
| private static final NoopCharAppender instance | |
| NoopCharAppender | back to summary |
|---|---|
| private NoopCharAppender() This is a singleton class and cannot be instantiated. Use | |
| append | back to summary |
|---|---|
| public void append(char ch) Implements com. Does nothing
| |
| append | back to summary |
|---|---|
| public void append(char[] ch, int from, int length) Implements com. Does nothing
| |
| append | back to summary |
|---|---|
| public void append(char[] ch) Implements com. Does nothing
| |
| append | back to summary |
|---|---|
| public void append(String string) Implements com. Does nothing
| |
| append | back to summary |
|---|---|
| public void append(String string, int from, int to) Implements com. Does nothing
| |
| append | back to summary |
|---|---|
| public void append(int ch) Implements com. Does nothing
| |
| append | back to summary |
|---|---|
| public void append(int[] ch) Implements com. Does nothing
| |
| append | back to summary |
|---|---|
| public void append(Object obj) Implements com. Does nothing
| |
| appendIgnoringPadding | back to summary |
|---|---|
| public void appendIgnoringPadding(char ch, char padding) Implements com. Does nothing
| |
| appendIgnoringWhitespace | back to summary |
|---|---|
| public void appendIgnoringWhitespace(char ch) Implements com. Does nothing
| |
| appendIgnoringWhitespaceAndPadding | back to summary |
|---|---|
| public void appendIgnoringWhitespaceAndPadding(char ch, char padding) Implements com. Does nothing
| |
| appendUntil | back to summary |
|---|---|
| public char appendUntil(char ch, CharInput input, char stop) 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) 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) Implements com. Doc from com. Appends characters from the input, until a stop character is found
| |
| charAt | back to summary |
|---|---|
| public char charAt(int i) Implements java. Does nothing
| |
| delete | back to summary |
|---|---|
| public void delete(int count) Implements com. Does nothing
| |
| fill | back to summary |
|---|---|
| public void fill(char ch, int length) Implements com. Does nothing
| |
| getAndReset | back to summary |
|---|---|
| public String getAndReset() Implements com. Returns null as this appender does nothing. | |
| getChars | back to summary |
|---|---|
| public char[] getChars() Implements com. Does nothing
| |
| getCharsAndReset | back to summary |
|---|---|
| public char[] getCharsAndReset() Implements com. Returns null as this appender does nothing.
| |
| getInstance | back to summary |
|---|---|
| public static CharAppender getInstance() Returns the singleton instance of NoopCharAppender
| |
| ignore | back to summary |
|---|---|
| public void ignore(int count) Implements com. Does nothing
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(char ch, int from) Implements com. Does nothing
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(char[] charSequence, int from) Implements com. Does nothing
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(CharSequence charSequence, int from) Implements com. Does nothing
| |
| indexOfAny | back to summary |
|---|---|
| public int indexOfAny(char[] chars, int from) Implements com. Does nothing
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements com. Returns
| |
| lastIndexOf | back to summary |
|---|---|
| public int lastIndexOf(char ch) Implements com. Doc from com. Returns the last index of a given character in the current appended (characters that have been marked as whitespace will be ignored)
| |
| length | back to summary |
|---|---|
| public int length() Implements com. Returns -1 as this appender does nothing.
| |
| prepend | back to summary |
|---|---|
| public void prepend(char ch) Implements com. Does nothing
| |
| prepend | back to summary |
|---|---|
| public void prepend(char ch1, char ch2) Implements com. Does nothing
| |
| prepend | back to summary |
|---|---|
| public void prepend(char[] chars) Implements com. Does nothing
| |
| remove | back to summary |
|---|---|
| public void remove(int from, int length) Implements com. Does nothing
| |
| reset | back to summary |
|---|---|
| public void reset() Implements com. Does nothing
| |
| resetWhitespaceCount | back to summary |
|---|---|
| public void resetWhitespaceCount() Implements com. Does nothing
| |
| subSequence | back to summary |
|---|---|
| public CharSequence subSequence(int i, int i1) Implements java. Does nothing
| |
| substring | back to summary |
|---|---|
| public String substring(int from, int length) Implements com. Does nothing
| |
| updateWhitespace | back to summary |
|---|---|
| public void updateWhitespace() Implements com. Does nothing
| |
| whitespaceCount | back to summary |
|---|---|
| public int whitespaceCount() Implements com. Returns 0 as this appender does nothing.
| |