| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final CsvCallbackHandler | |
| private final char | |
| private final CommentStrategy | |
| private char[] | |
| private int | |
| private static final int | |
| private static final int | |
| private final char | |
| private final char[] | |
| private int | |
| private final int | |
| private final char | |
| private final RelaxedCsvParser. | |
| private static final char | |
| private long | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | RelaxedCsvParser(final String fsep, final char qChar, final CommentStrategy cStrat, final char cChar, final boolean trimWhitespacesAroundQuotes, final CsvCallbackHandler<?> callbackHandler, final int maxBufferSize, final Reader reader)
|
| pack-priv | RelaxedCsvParser(final String fsep, final char qChar, final CommentStrategy cStrat, final char cChar, final boolean trimWhitespacesAroundQuotes, final CsvCallbackHandler<?> callbackHandler, final int maxBufferSize, final String data)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private static void | assertFields(final String fieldSeparator, final char quoteCharacter, final char commentCharacter, final CommentStrategy commentStrategy)
|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| private boolean | |
| private static char[] | |
| public long | getStartingLineNumber()
Implements de. Returns the starting line number of the last parsed record. |
| public boolean | parse()
Implements de. Parses the next record from the stream and passes it to the callback handler. |
| private void | |
| private boolean | |
| private boolean | |
| public String | peekLine()
Implements de. Returns the next line from the stream without consuming it. |
| public void | reset(final long startingLineNumber)
Implements de. Resets the parser to the specified starting line number. |
| public void | skipLine(final int numCharsToSkip)
Implements de. Skips a line in the stream after skipping the specified number of characters. |
| callbackHandler | back to summary |
|---|---|
| private final CsvCallbackHandler<?> callbackHandler | |
| cChar | back to summary |
|---|---|
| private final char cChar | |
| cStrat | back to summary |
|---|---|
| private final CommentStrategy cStrat | |
| currentField | back to summary |
|---|---|
| private char[] currentField | |
| currentFieldIndex | back to summary |
|---|---|
| private int currentFieldIndex | |
| DEFAULT_BUFFER_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_BUFFER_SIZE | |
| EOF | back to summary |
|---|---|
| private static final int EOF | |
| fsep | back to summary |
|---|---|
| private final char fsep | |
| fsepRemainder | back to summary |
|---|---|
| private final char[] fsepRemainder
| |
| lines | back to summary |
|---|---|
| private int lines | |
| maxBufferSize | back to summary |
|---|---|
| private final int maxBufferSize | |
| qChar | back to summary |
|---|---|
| private final char qChar | |
| reader | back to summary |
|---|---|
| private final RelaxedCsvParser. | |
| SPACE | back to summary |
|---|---|
| private static final char SPACE | |
| startingLineNumber | back to summary |
|---|---|
| private long startingLineNumber | |
| trimWhitespacesAroundQuotes | back to summary |
|---|---|
| private final boolean trimWhitespacesAroundQuotes | |
| RelaxedCsvParser | back to summary |
|---|---|
pack-priv RelaxedCsvParser(final String fsep, final char qChar, final CommentStrategy cStrat, final char cChar, final boolean trimWhitespacesAroundQuotes, final CsvCallbackHandler<?> callbackHandler, final int maxBufferSize, final Reader reader)
| |
| RelaxedCsvParser | back to summary |
|---|---|
pack-priv RelaxedCsvParser(final String fsep, final char qChar, final CommentStrategy cStrat, final char cChar, final boolean trimWhitespacesAroundQuotes, final CsvCallbackHandler<?> callbackHandler, final int maxBufferSize, final String data)
| |
| appendChar | back to summary |
|---|---|
| private void appendChar(final int ch) | |
| assertFields | back to summary |
|---|---|
| private static void assertFields(final String fieldSeparator, final char quoteCharacter, final char commentCharacter, final CommentStrategy commentStrategy) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| currentFieldHasOnlyWhitespace | back to summary |
|---|---|
| private boolean currentFieldHasOnlyWhitespace() | |
| extractFsepRemainder | back to summary |
|---|---|
private static char[] extractFsepRemainder(final String fsep)
| |
| getStartingLineNumber | back to summary |
|---|---|
| public long getStartingLineNumber() Implements de. Doc from de. Returns the starting line number of the last parsed record.
| |
| parse | back to summary |
|---|---|
| public boolean parse() throws IOException Implements de. Doc from de. Parses the next record from the stream and passes it to the callback handler.
| |
| parseComment | back to summary |
|---|---|
private void parseComment() throws IOException
| |
| parseQuoted | back to summary |
|---|---|
private boolean parseQuoted() throws IOException
| |
| parseUnquoted | back to summary |
|---|---|
private boolean parseUnquoted(int ch) throws IOException
| |
| peekLine | back to summary |
|---|---|
| public String peekLine() throws IOException Implements de. Doc from de. Returns the next line from the stream without consuming it.
| |
| reset | back to summary |
|---|---|
| public void reset(final long startingLineNumber) Implements de. Doc from de. Resets the parser to the specified starting line number.
| |
| skipLine | back to summary |
|---|---|
| public void skipLine(final int numCharsToSkip) throws IOException Implements de. Doc from de. Skips a line in the stream after skipping the specified number of characters.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final char[] | |
| private int | |
| private final Reader | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| pack-priv boolean | |
| pack-priv boolean | |
| private void | |
| pack-priv String | |
| pack-priv int | |
| pack-priv void |
| buffer | back to summary |
|---|---|
| private final char[] buffer | |
| len | back to summary |
|---|---|
| private int len | |
| reader | back to summary |
|---|---|
| private final Reader reader | |
| start | back to summary |
|---|---|
| private int start | |
| LookaheadReader | back to summary |
|---|---|
| pack-priv LookaheadReader(final Reader reader, final int bufferSize) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| consumeIf | back to summary |
|---|---|
pack-priv boolean consumeIf(final char[] chars) throws IOException
| |
| consumeLF | back to summary |
|---|---|
| pack-priv boolean consumeLF() throws IOException | |
| ensureBuffered | back to summary |
|---|---|
| private void ensureBuffered(final int required) throws IOException | |
| peekLine | back to summary |
|---|---|
| pack-priv String peekLine() throws IOException | |
| read | back to summary |
|---|---|
| pack-priv int read() throws IOException | |
| skip | back to summary |
|---|---|
| pack-priv void skip(final int numCharsToSkip) | |