Package de.siegmar.fastcsv.reader
package de.siegmar.fastcsv.reader
Provides classes for reading CSV data.
The main entry point is CsvReader, which reads CSV records sequentially
using an iterator or stream. Records are represented as CsvRecord
(index-based access) or NamedCsvRecord (header-based access).
For random access to large CSV files, use IndexedCsvReader, which builds
a CsvIndex for page-based retrieval.
Custom record types can be built by implementing CsvCallbackHandler.
All readers implement Closeable and should be used in a try-with-resources block.
Obtain a reader via CsvReader.builder().
-
ClassDescriptionBase class for
CsvCallbackHandlerimplementations that handles their own field storage and record building.Abstract base class forCsvCallbackHandlerimplementations.AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder<T extends AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder<?>>Abstract builder forAbstractInternalCsvCallbackHandlersubclasses.Iterator that supports closing underlying resources.Implementation ofStatusListenerthat collects updates.This is an enumeration that defines the strategies for handling comments in CSV data that does not conform to RFC.This class defines the methods that are called during the CSV reading process.Index built byIndexedCsvReaderto access large CSV data files.Represents a page of the CSV file.Exception to be thrown when malformed csv data is read.CsvReader<T>This is the main class for reading CSV data.This builder is used to create configured instances ofCsvReader.Represents an immutable CSV record with unnamed (indexed) fields.ACsvCallbackHandlerimplementation that returns aCsvRecordfor each record.A builder forCsvRecordHandler.Defines the strategy for handling records with a field count that does not match the first record.Implementations of this class are used withinCsvCallbackHandlerimplementations to modify the fields of a CSV record before storing them in the resulting object.Provides some commonFieldModifierimplementations.Implementations of this class are used withinNamedCsvRecordHandlerto validate the header of a CSV file once it is determined.CSV reader implementation for indexed based access.This builder is used to create configured instances ofIndexedCsvReader.Represents an immutable CSV record with named (and indexed) fields.A callback handler that returns aNamedCsvRecordfor each record.A builder forNamedCsvRecordHandler.Represents the type of record in a CSV file.Custom status listeners have to implement this interface.ACsvCallbackHandlerimplementation that returns the fields of each record as an array of Strings.A builder forStringArrayHandler.