public class IdxParser extends CsvParser<IdxRecord>
Modifier | Constructor and Description |
---|---|
protected |
IdxParser(org.apache.commons.csv.CSVParser parser)
Create with specifications of a
CSVParser . |
Modifier and Type | Method and Description |
---|---|
static IdxParser |
create(File csvFile)
|
static IdxParser |
create(InputStream input)
Creates a
IdxParser from an InputStream with CSV data. |
static IdxParser |
create(Reader input)
|
static IdxParser |
create(String csvString)
|
protected IdxRecord |
newRecord(org.apache.commons.csv.CSVRecord record)
Creates a new
CsvRecord with parsed CSV data. |
close, closeQuietly, getCurrentLineNumber, getRecordNumber, hasNext, isClosed, next
protected IdxParser(org.apache.commons.csv.CSVParser parser)
CSVParser
.parser
- the CSV parser from
commons-csvpublic static IdxParser create(String csvString) throws IOException
csvString
- CSV stringIOException
- if CSV is not readablepublic static IdxParser create(File csvFile) throws IOException
csvFile
- CSV fileIOException
- if CSV is not readablepublic static IdxParser create(InputStream input) throws IOException
IdxParser
from an InputStream
with CSV data.input
- CSV inputIOException
- if CSV is not readablepublic static IdxParser create(Reader input) throws IOException
input
- CSV inputIOException
- if CSV is not readableCopyright © 2015 OpenEstate. All rights reserved.