public interface ICSVParser
CSVReader
needs from a parser to tokenize an input line for further processing.Modifier and Type | Field and Description |
---|---|
static char |
DEFAULT_ESCAPE_CHARACTER
The default escape character to use if none is supplied to the
constructor.
|
static boolean |
DEFAULT_IGNORE_LEADING_WHITESPACE
The default leading whitespace behavior to use if none is supplied to the
constructor.
|
static boolean |
DEFAULT_IGNORE_QUOTATIONS
If the quote character is set to null then there is no quote character.
|
static CSVReaderNullFieldIndicator |
DEFAULT_NULL_FIELD_INDICATOR
Denotes what field contents will cause the parser to return null: EMPTY_SEPARATORS, EMPTY_QUOTES, BOTH, NEITHER (default)
|
static char |
DEFAULT_QUOTE_CHARACTER
The default quote character to use if none is supplied to the
constructor.
|
static char |
DEFAULT_SEPARATOR
The default separator to use if none is supplied to the constructor.
|
static boolean |
DEFAULT_STRICT_QUOTES
The default strict quote behavior to use if none is supplied to the
constructor.
|
static int |
INITIAL_READ_SIZE
The average size of a line read by opencsv (used for setting the size of StringBuilders).
|
static char |
NULL_CHARACTER
This is the "null" character - if a value is set to this then it is ignored.
|
static int |
READ_BUFFER_SIZE
In most cases we know the size of the line we want to read.
|
Modifier and Type | Method and Description |
---|---|
char |
getQuotechar() |
char |
getSeparator() |
boolean |
isPending() |
CSVReaderNullFieldIndicator |
nullFieldIndicator() |
String[] |
parseLine(String nextLine)
Parses an incoming String and returns an array of elements.
|
String[] |
parseLineMulti(String nextLine)
Parses an incoming String and returns an array of elements.
|
static final char DEFAULT_SEPARATOR
static final int INITIAL_READ_SIZE
static final int READ_BUFFER_SIZE
static final char DEFAULT_QUOTE_CHARACTER
static final char DEFAULT_ESCAPE_CHARACTER
static final boolean DEFAULT_STRICT_QUOTES
static final boolean DEFAULT_IGNORE_LEADING_WHITESPACE
static final boolean DEFAULT_IGNORE_QUOTATIONS
static final char NULL_CHARACTER
static final CSVReaderNullFieldIndicator DEFAULT_NULL_FIELD_INDICATOR
char getSeparator()
char getQuotechar()
boolean isPending()
String[] parseLineMulti(String nextLine) throws IOException
nextLine
- Current line to be processedIOException
- If bad things happen during the readString[] parseLine(String nextLine) throws IOException
nextLine
- Line to be parsed.IOException
- If bad things happen during the readCSVReaderNullFieldIndicator nullFieldIndicator()
Copyright © 2017. All rights reserved.