| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final String | |
| private final char[] | |
| private final char[] | |
| private final int | |
| private final char[] | |
| private String | |
| private final boolean | |
| private final boolean | |
| private boolean | |
| private final boolean | |
| private static final String | |
| private final int | |
| private final ExtendedBufferedReader | reader
The buffered reader. |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | appendNextEscapedCharacterToToken(final Token
the current token token)Appends the next escaped character to the token's content. |
| public void | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv String | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | Returns: true if the next characters constitute a delimiter.the current character. ch)Determine whether the next characters constitute a delimiter through |
| pack-priv boolean | Returns: true if the given character indicates the end of the file.Tests if the given character indicates the end of the file. |
| pack-priv boolean | Returns: true if the given character is the escape character.Tests if the given character is the escape character. |
| pack-priv boolean | Returns: true if the next characters constitute an escape delimiter.Tests if the next characters constitute a escape delimiter through |
| private boolean | |
| pack-priv boolean | |
| pack-priv boolean | Returns: true if the character is at the start of a line.the character to check ch)Tests if the current character represents the start of a line: a CR, LF, or is at the start of the file. |
| pack-priv Token | |
| private int | |
| private Token | Returns: a valid token objectthe current token token)Parses an encapsulated token. |
| private Token | Returns: the filled tokenthe current token token, final int the current character ch)Parses a simple token. |
| pack-priv boolean | Returns: true if the given or next character is a line-terminatorGreedily accepts \n, \r and \r\n This checker consumes silently the second control-character... |
| pack-priv int | Returns: the unescaped character (as an int) orIOUtils#EOF if char following the escape is invalid.Handle an escape sequence. |
| pack-priv void |
| commentStart | back to summary |
|---|---|
| private final int commentStart | |
| CR_STRING | back to summary |
|---|---|
| private static final String CR_STRING | |
| delimiter | back to summary |
|---|---|
| private final char[] delimiter | |
| delimiterBuf | back to summary |
|---|---|
| private final char[] delimiterBuf | |
| escape | back to summary |
|---|---|
| private final int escape | |
| escapeDelimiterBuf | back to summary |
|---|---|
| private final char[] escapeDelimiterBuf | |
| firstEol | back to summary |
|---|---|
| private String firstEol | |
| ignoreEmptyLines | back to summary |
|---|---|
| private final boolean ignoreEmptyLines | |
| ignoreSurroundingSpaces | back to summary |
|---|---|
| private final boolean ignoreSurroundingSpaces | |
| isLastTokenDelimiter | back to summary |
|---|---|
| private boolean isLastTokenDelimiter | |
| lenientEof | back to summary |
|---|---|
| private final boolean lenientEof | |
| LF_STRING | back to summary |
|---|---|
| private static final String LF_STRING | |
| quoteChar | back to summary |
|---|---|
| private final int quoteChar | |
| reader | back to summary |
|---|---|
| private final ExtendedBufferedReader reader The buffered reader. | |
| trailingData | back to summary |
|---|---|
| private final boolean trailingData | |
| Lexer | back to summary |
|---|---|
| pack-priv Lexer(final CSVFormat format, final ExtendedBufferedReader reader) | |
| appendNextEscapedCharacterToToken | back to summary |
|---|---|
| private void appendNextEscapedCharacterToToken(final Token token) throws IOException Appends the next escaped character to the token's content.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Closes resources.
| |
| getBytesRead | back to summary |
|---|---|
| pack-priv long getBytesRead() Gets the number of bytes read
| |
| getCharacterPosition | back to summary |
|---|---|
| pack-priv long getCharacterPosition() Returns the current character position
| |
| getCurrentLineNumber | back to summary |
|---|---|
| pack-priv long getCurrentLineNumber() Returns the current line number
| |
| getFirstEol | back to summary |
|---|---|
| pack-priv String getFirstEol() | |
| isClosed | back to summary |
|---|---|
| pack-priv boolean isClosed() | |
| isCommentStart | back to summary |
|---|---|
| pack-priv boolean isCommentStart(final int ch) | |
| isDelimiter | back to summary |
|---|---|
| pack-priv boolean isDelimiter(final int ch) throws IOException Determine whether the next characters constitute a delimiter through
| |
| isEndOfFile | back to summary |
|---|---|
| pack-priv boolean isEndOfFile(final int ch) Tests if the given character indicates the end of the file.
| |
| isEscape | back to summary |
|---|---|
| pack-priv boolean isEscape(final int ch) Tests if the given character is the escape character.
| |
| isEscapeDelimiter | back to summary |
|---|---|
| pack-priv boolean isEscapeDelimiter() throws IOException Tests if the next characters constitute a escape delimiter through
| |
| isMetaChar | back to summary |
|---|---|
| private boolean isMetaChar(final int ch) | |
| isQuoteChar | back to summary |
|---|---|
| pack-priv boolean isQuoteChar(final int ch) | |
| isStartOfLine | back to summary |
|---|---|
| pack-priv boolean isStartOfLine(final int ch) Tests if the current character represents the start of a line: a CR, LF, or is at the start of the file.
| |
| nextToken | back to summary |
|---|---|
| pack-priv Token nextToken(final Token token) throws IOException Returns the next token. A token corresponds to a term, a record change or an end-of-file indicator.
| |
| nullToDisabled | back to summary |
|---|---|
| private int nullToDisabled(final Character c) | |
| parseEncapsulatedToken | back to summary |
|---|---|
| private Token parseEncapsulatedToken(final Token token) throws IOException Parses an encapsulated token. Encapsulated tokens are surrounded by the given encapsulating string. The encapsulator itself might be included in the token using a doubling syntax (as "", '') or using escaping (as in \", \'). Whitespaces before and after an encapsulated token is ignored. The token is finished when one of the following conditions becomes true:
| |
| parseSimpleToken | back to summary |
|---|---|
| private Token parseSimpleToken(final Token token, final int ch) throws IOException Parses a simple token. Simple tokens are tokens that are not surrounded by encapsulators. A simple token might contain escaped delimiters (as \, or \;). The token is finished when one of the following conditions becomes true:
| |
| readEndOfLine | back to summary |
|---|---|
| pack-priv boolean readEndOfLine(final int ch) throws IOException Greedily accepts \n, \r and \r\n This checker consumes silently the second control-character...
| |
| readEscape | back to summary |
|---|---|
| pack-priv int readEscape() throws IOException Handle an escape sequence. The current character must be the escape character. On return, the next character is available by calling
| |
| trimTrailingSpaces | back to summary |
|---|---|
| pack-priv void trimTrailingSpaces(final StringBuilder buffer) | |