Java org.apache.commons.csv CSVParser fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.csv CSVParser fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.csv CSVParser.

The text is from its open source code.

Constructor

CSVParser(final Reader reader, final CSVFormat format)
Customized CSV parser using the given CSVFormat

If you do not read all records from the given reader , you should call #close() on the parser, unless you close the reader .

Method

voidclose()
Closes resources.
voidforEach(Consumer action)
Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception.
longgetCurrentLineNumber()
Returns the current line number in the input stream.
MapgetHeaderMap()
Returns a copy of the header map that iterates in column order.
longgetRecordNumber()
Returns the current record number in the input stream.
ListgetRecords()
Parses the CSV input according to the given format and returns the content as a list of CSVRecord CSVRecords .
Iteratoriterator()
Returns an iterator on the records.
CSVParserparse(final File file, final Charset charset, final CSVFormat format)
Creates a parser for the given File .
CSVParserparse(final URL url, final Charset charset, final CSVFormat format)
Creates a parser for the given URL.
CSVParserparse(final String string, final CSVFormat format)
Creates a parser for the given String .
Spliteratorspliterator()
Creates a Spliterator over the elements described by this Iterable .