Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form|System Properties
A
- AbstractBaseCsvCallbackHandler<T> - Class in de.siegmar.fastcsv.reader
-
Base class for
CsvCallbackHandlerimplementations that handles their own field storage and record building. - AbstractBaseCsvCallbackHandler() - Constructor for class de.siegmar.fastcsv.reader.AbstractBaseCsvCallbackHandler
-
Constructs a new instance.
- AbstractInternalCsvCallbackHandler<T> - Class in de.siegmar.fastcsv.reader
-
Abstract base class for
CsvCallbackHandlerimplementations. - AbstractInternalCsvCallbackHandler() - Constructor for class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
Deprecated, for removal: This API element is subject to removal in a future version.
- AbstractInternalCsvCallbackHandler(int, int, int, FieldModifier) - Constructor for class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
Constructs a new instance with the given configuration.
- AbstractInternalCsvCallbackHandler(FieldModifier) - Constructor for class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
Deprecated, for removal: This API element is subject to removal in a future version.
- AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder<T> - Class in de.siegmar.fastcsv.reader
-
Abstract builder for
AbstractInternalCsvCallbackHandlersubclasses. - AbstractInternalCsvCallbackHandlerBuilder() - Constructor for class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder
-
Constructs a new default instance.
- acceptCharsAfterQuotes(boolean) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Specifies whether the presence of characters between a closing quote and a field separator or the end of a line should be treated as an error or not.
- acceptCharsAfterQuotes(boolean) - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader.IndexedCsvReaderBuilder
-
Specifies whether the presence of characters between a closing quote and a field separator or the end of a line should be treated as an error or not.
- addField(char[], int, int, boolean) - Method in class de.siegmar.fastcsv.reader.AbstractBaseCsvCallbackHandler
-
Called for each field in the record.
- addField(char[], int, int, boolean) - Method in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
Called for each field in the record.
- addField(char[], int, int, boolean) - Method in class de.siegmar.fastcsv.reader.CsvCallbackHandler
-
Called for each field in the record.
- ALWAYS - Static variable in class de.siegmar.fastcsv.writer.QuoteStrategies
-
Enclose any field with quotes regardless of its content (even empty and
nullfields). - andThen(FieldModifier) - Method in interface de.siegmar.fastcsv.reader.FieldModifier
-
Chains multiple modifiers.
- autoFlush(boolean) - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterBuilder
-
Configures whether data should be flushed after each record write operation.
B
- beginRecord(long) - Method in class de.siegmar.fastcsv.reader.AbstractBaseCsvCallbackHandler
-
Called at the beginning of each record.
- beginRecord(long) - Method in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
Called at the beginning of each record.
- beginRecord(long) - Method in class de.siegmar.fastcsv.reader.CsvCallbackHandler
-
Called at the beginning of each record.
- bufferSize(int) - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterBuilder
-
Configures the size of the internal buffer.
- build() - Method in class de.siegmar.fastcsv.reader.CsvRecordHandler.CsvRecordHandlerBuilder
-
Builds the
CsvRecordHandlerinstance. - build() - Method in class de.siegmar.fastcsv.reader.NamedCsvRecordHandler.NamedCsvRecordHandlerBuilder
-
Builds the
NamedCsvRecordHandlerinstance. - build() - Method in class de.siegmar.fastcsv.reader.StringArrayHandler.StringArrayHandlerBuilder
-
Builds the
StringArrayHandlerinstance. - build(CsvCallbackHandler<T>, InputStream) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new callback-based
CsvReaderfor the specified input stream. - build(CsvCallbackHandler<T>, InputStream, Charset) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new callback-based
CsvReaderfor the specified input stream and character set. - build(CsvCallbackHandler<T>, Reader) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new callback-based
CsvReaderfor the specified reader. - build(CsvCallbackHandler<T>, String) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new callback-based
CsvReaderfor the specified String. - build(CsvCallbackHandler<T>, Path) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new callback-based
CsvReaderfor the specified file. - build(CsvCallbackHandler<T>, Path) - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader.IndexedCsvReaderBuilder
-
Constructs a new
IndexedCsvReaderfor the specified callback handler and path using UTF-8 as the character set. - build(CsvCallbackHandler<T>, Path, Charset) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new callback-based
CsvReaderfor the specified file and character set. - build(CsvCallbackHandler<T>, Path, Charset) - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader.IndexedCsvReaderBuilder
-
Constructs a new
IndexedCsvReaderfor the specified arguments. - build(OutputStream) - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterBuilder
-
Constructs a
CsvWriterfor the specified OutputStream. - build(OutputStream, Charset) - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterBuilder
-
Constructs a
CsvWriterfor the specified OutputStream and character set. - build(Writer) - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterBuilder
-
Constructs a
CsvWriterfor the specified Writer. - build(Path, Charset, OpenOption...) - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterBuilder
-
Constructs a
CsvWriterfor the specified Path. - build(Path, OpenOption...) - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterBuilder
-
Constructs a
CsvWriterfor the specified Path. - builder() - Static method in class de.siegmar.fastcsv.reader.CsvReader
-
Constructs a
CsvReader.CsvReaderBuilderto configure and build instances of this class. - builder() - Static method in class de.siegmar.fastcsv.reader.CsvRecordHandler
-
Constructs a new builder instance for this class.
- builder() - Static method in class de.siegmar.fastcsv.reader.IndexedCsvReader
-
Constructs a
IndexedCsvReader.IndexedCsvReaderBuilderto configure and build instances of this class. - builder() - Static method in class de.siegmar.fastcsv.reader.NamedCsvRecordHandler
-
Constructs a new builder instance for this class.
- builder() - Static method in class de.siegmar.fastcsv.reader.StringArrayHandler
-
Constructs a new builder instance for this class.
- builder() - Static method in class de.siegmar.fastcsv.writer.CsvWriter
-
Creates a
CsvWriter.CsvWriterBuilderinstance used to configure and create instances of this class. - buildRecord() - Method in class de.siegmar.fastcsv.reader.CsvCallbackHandler
-
Called at the end of each CSV record to build an object representation of the record.
- buildRecord() - Method in class de.siegmar.fastcsv.reader.CsvRecordHandler
- buildRecord() - Method in class de.siegmar.fastcsv.reader.NamedCsvRecordHandler
- buildRecord() - Method in class de.siegmar.fastcsv.reader.StringArrayHandler
- buildWrapper(T) - Method in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
Builds a record wrapper for the given record.
C
- checkArgument(boolean, String) - Static method in class de.siegmar.fastcsv.util.Preconditions
-
Checks the given argument and throws an exception if not met.
- checkArgument(boolean, String, Object...) - Static method in class de.siegmar.fastcsv.util.Preconditions
-
Checks the given argument and throws an exception if not met.
- close() - Method in class de.siegmar.fastcsv.reader.CsvReader
- close() - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader
- close() - Method in class de.siegmar.fastcsv.writer.CsvWriter
- CloseableIterator<E> - Interface in de.siegmar.fastcsv.reader
-
Iterator that supports closing underlying resources.
- CollectingStatusListener - Class in de.siegmar.fastcsv.reader
-
Implementation of
StatusListenerthat collects updates. - CollectingStatusListener() - Constructor for class de.siegmar.fastcsv.reader.CollectingStatusListener
-
Default constructor.
- comment - Variable in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
Whether the current record is a comment.
- commentCharacter(char) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Sets the
commentCharacterused to comment lines. - commentCharacter(char) - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader.IndexedCsvReaderBuilder
-
Sets the
commentCharacterused to comment lines. - commentCharacter(char) - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterBuilder
-
Sets the character used to prepend commented lines – default:
#(hash/number). - commentStrategy(CommentStrategy) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Sets the strategy that defines how (and if) commented lines should be handled (default:
CommentStrategy.NONEas comments are not defined in RFC 4180). - commentStrategy(CommentStrategy) - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader.IndexedCsvReaderBuilder
-
Sets the strategy that defines how (and if) commented lines should be handled (default:
CommentStrategy.NONEas comments are not defined in RFC 4180). - CommentStrategy - Enum Class in de.siegmar.fastcsv.reader
-
This is an enumeration that defines the strategies for handling comments in CSV data that does not conform to RFC.
- compactFields() - Method in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
Builds a compact fields array (a copy of the internal fields array with the length of the current record).
- containsDupe(char...) - Static method in class de.siegmar.fastcsv.util.Util
-
Checks if the given array of characters contains any duplicate characters.
- CR - Enum constant in enum class de.siegmar.fastcsv.writer.LineDelimiter
-
Carriage Return - (Mac classic).
- CR - Static variable in class de.siegmar.fastcsv.util.Util
-
Carriage return.
- CRLF - Enum constant in enum class de.siegmar.fastcsv.writer.LineDelimiter
-
Carriage Return and Line Feed (Windows).
- CsvCallbackHandler<T> - Class in de.siegmar.fastcsv.reader
-
This class defines the methods that are called during the CSV reading process.
- CsvCallbackHandler() - Constructor for class de.siegmar.fastcsv.reader.CsvCallbackHandler
-
Default constructor.
- CsvIndex - Class in de.siegmar.fastcsv.reader
-
Index built by
IndexedCsvReaderto access large CSV data files. - CsvParseException - Exception Class in de.siegmar.fastcsv.reader
-
Exception to be thrown when malformed csv data is read.
- CsvParseException(String) - Constructor for exception class de.siegmar.fastcsv.reader.CsvParseException
-
Construct exception with a message.
- CsvParseException(String, Throwable) - Constructor for exception class de.siegmar.fastcsv.reader.CsvParseException
-
Construct exception with message and cause.
- CsvReader<T> - Class in de.siegmar.fastcsv.reader
-
This is the main class for reading CSV data.
- CsvReader.CsvReaderBuilder - Class in de.siegmar.fastcsv.reader
-
This builder is used to create configured instances of
CsvReader. - CsvRecord - Class in de.siegmar.fastcsv.reader
-
Represents an immutable CSV record with unnamed (indexed) fields.
- CsvRecordHandler - Class in de.siegmar.fastcsv.reader
-
A
CsvCallbackHandlerimplementation that returns aCsvRecordfor each record. - CsvRecordHandler() - Constructor for class de.siegmar.fastcsv.reader.CsvRecordHandler
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
CsvRecordHandler.of()instead. - CsvRecordHandler(FieldModifier) - Constructor for class de.siegmar.fastcsv.reader.CsvRecordHandler
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
CsvRecordHandler.builder()orCsvRecordHandler.of(Consumer)instead. - CsvRecordHandler.CsvRecordHandlerBuilder - Class in de.siegmar.fastcsv.reader
-
A builder for
CsvRecordHandler. - CsvWriter - Class in de.siegmar.fastcsv.writer
-
This is the main class for writing CSV data.
- CsvWriter.CsvWriterBuilder - Class in de.siegmar.fastcsv.writer
-
This builder is used to create configured instances of
CsvWriter. - CsvWriter.CsvWriterRecord - Class in de.siegmar.fastcsv.writer
-
This class is used to write a record field by field.
D
- de.siegmar.fastcsv - module de.siegmar.fastcsv
-
FastCSV
- de.siegmar.fastcsv.reader - package de.siegmar.fastcsv.reader
-
FastCSV reader.
- de.siegmar.fastcsv.util - package de.siegmar.fastcsv.util
-
Internal FastCSV utilities.
- de.siegmar.fastcsv.writer - package de.siegmar.fastcsv.writer
-
FastCSV writer.
- detectBomHeader(boolean) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Defines if an optional BOM (Byte order mark) header should be detected.
E
- EMPTY - Static variable in class de.siegmar.fastcsv.writer.QuoteStrategies
-
Enclose empty but not
nullfields to differentiate them. - emptyLine - Variable in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
Whether the line is empty.
- endRecord() - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterRecord
-
Ends the current record.
- equals(Object) - Method in class de.siegmar.fastcsv.reader.CsvIndex
F
- fastcsv.max.field.count - Search tag in de.siegmar.fastcsv.util.Limits.MAX_FIELD_COUNT
- System Property
- fastcsv.max.field.size - Search tag in de.siegmar.fastcsv.util.Limits.MAX_FIELD_SIZE
- System Property
- fieldIdx - Variable in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
The current index in the internal fields array.
- fieldModifier - Variable in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder
-
The field modifier.
- fieldModifier - Variable in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
The field modifier.
- fieldModifier(FieldModifier) - Method in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder
-
Sets the field modifier.
- FieldModifier - Interface in de.siegmar.fastcsv.reader
-
Implementations of this class are used within
CsvCallbackHandlerimplementations to modify the fields of a CSV record before storing them in the resulting object. - FieldModifiers - Class in de.siegmar.fastcsv.reader
-
Provides some common
FieldModifierimplementations. - fields - Variable in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
The internal fields array.
- fieldSeparator(char) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Sets the
fieldSeparatorused when reading CSV data. - fieldSeparator(char) - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader.IndexedCsvReaderBuilder
-
Sets the
fieldSeparatorused when reading CSV data. - fieldSeparator(char) - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterBuilder
-
Sets the character that is used to separate fields – default:
,(comma). - findField(String) - Method in class de.siegmar.fastcsv.reader.NamedCsvRecord
-
Retrieves the value of a field by its case-sensitive name, considering the first occurrence in case of duplicates.
- findFields(String) - Method in class de.siegmar.fastcsv.reader.NamedCsvRecord
-
Collects all field values with the given name (case-sensitive) in the order they appear in the header.
- flush() - Method in class de.siegmar.fastcsv.writer.CsvWriter
G
- getByteCount() - Method in class de.siegmar.fastcsv.reader.CollectingStatusListener
-
Get the number of bytes already read.
- getField(int) - Method in class de.siegmar.fastcsv.reader.CsvRecord
-
Retrieves the value of a field based on its index, with indexing starting from 0.
- getField(String) - Method in class de.siegmar.fastcsv.reader.NamedCsvRecord
-
Retrieves the value of a field by its case-sensitive name, considering the first occurrence in case of duplicates.
- getFieldCount() - Method in class de.siegmar.fastcsv.reader.AbstractBaseCsvCallbackHandler
-
Returns the number of fields in the current record..
- getFieldCount() - Method in class de.siegmar.fastcsv.reader.CsvRecord
-
Gets the count of fields in this record.
- getFieldCount() - Method in class de.siegmar.fastcsv.reader.RecordWrapper
-
Returns the number of fields in the record..
- getFields() - Method in class de.siegmar.fastcsv.reader.CsvRecord
-
Retrieves all fields of this record as an unmodifiable list.
- getFieldsAsMap() - Method in class de.siegmar.fastcsv.reader.NamedCsvRecord
-
Constructs an ordered map, associating header names with corresponding field values of this record, considering the first occurrence in case of duplicates.
- getFieldsAsMapList() - Method in class de.siegmar.fastcsv.reader.NamedCsvRecord
-
Constructs an unordered map, associating header names with an ordered list of corresponding field values in this record.
- getFileSize() - Method in class de.siegmar.fastcsv.reader.CollectingStatusListener
-
Get the total size in bytes.
- getHeader() - Method in class de.siegmar.fastcsv.reader.NamedCsvRecord
-
Retrieves the header names of this record.
- getIndex() - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader
-
Get the index used for accessing the CSV file.
- getPageCount() - Method in class de.siegmar.fastcsv.reader.CsvIndex
-
Gets the number of pages the file contents is partitioned to.
- getRecordCount() - Method in class de.siegmar.fastcsv.reader.CollectingStatusListener
-
Get the number of records already indexed.
- getRecordCount() - Method in class de.siegmar.fastcsv.reader.CsvIndex
-
Gets the number of records the file contains.
- getStartingLineNumber() - Method in class de.siegmar.fastcsv.reader.AbstractBaseCsvCallbackHandler
-
The starting line number of the current record.
- getStartingLineNumber() - Method in class de.siegmar.fastcsv.reader.CsvRecord
-
Provides the line number at which this record originated, starting from 1.
- getThrowable() - Method in class de.siegmar.fastcsv.reader.CollectingStatusListener
-
Get the throwable that occurred while indexing.
- getWrappedRecord() - Method in class de.siegmar.fastcsv.reader.RecordWrapper
-
Returns the actual record to be returned by the
CsvReader, nevernull..
H
- handleBegin(long) - Method in class de.siegmar.fastcsv.reader.AbstractBaseCsvCallbackHandler
-
Handles the beginning of a record.
- handleComment(char[], int, int) - Method in class de.siegmar.fastcsv.reader.AbstractBaseCsvCallbackHandler
-
Handles a comment.
- handleField(int, char[], int, int, boolean) - Method in class de.siegmar.fastcsv.reader.AbstractBaseCsvCallbackHandler
-
Handles a field.
- hashCode() - Method in class de.siegmar.fastcsv.reader.CsvIndex
- header(String...) - Method in class de.siegmar.fastcsv.reader.NamedCsvRecordHandler.NamedCsvRecordHandlerBuilder
-
Sets a predefined header.
- header(List<String>) - Method in class de.siegmar.fastcsv.reader.NamedCsvRecordHandler.NamedCsvRecordHandlerBuilder
-
Sets the header.
I
- ignoreDifferentFieldCount(boolean) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Defines if an
CsvParseExceptionshould be thrown if records do contain a different number of fields. - index(CsvIndex) - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader.IndexedCsvReaderBuilder
-
Sets a prebuilt index that should be used for accessing the file.
- IndexedCsvReader<T> - Class in de.siegmar.fastcsv.reader
-
CSV reader implementation for indexed based access.
- IndexedCsvReader.IndexedCsvReaderBuilder - Class in de.siegmar.fastcsv.reader
-
This builder is used to create configured instances of
IndexedCsvReader. - isComment() - Method in class de.siegmar.fastcsv.reader.AbstractBaseCsvCallbackHandler
-
Returns whether the current record is a comment..
- isComment() - Method in class de.siegmar.fastcsv.reader.CsvRecord
-
Indicates whether the record is a commented record.
- isComment() - Method in class de.siegmar.fastcsv.reader.RecordWrapper
-
Returns whether the record denotes a comment..
- isCompleted() - Method in class de.siegmar.fastcsv.reader.CollectingStatusListener
-
Get the completion status.
- isEmptyLine() - Method in class de.siegmar.fastcsv.reader.AbstractBaseCsvCallbackHandler
-
Returns whether the current record is an empty line..
- isEmptyLine() - Method in class de.siegmar.fastcsv.reader.RecordWrapper
-
Returns whether the record is empty..
- isNewline(char) - Static method in class de.siegmar.fastcsv.util.Util
-
Checks if the given character is a newline character.
- iterator() - Method in class de.siegmar.fastcsv.reader.CsvReader
-
Returns an iterator over elements of type
CsvRecord..
L
- LF - Enum constant in enum class de.siegmar.fastcsv.writer.LineDelimiter
-
Line Feed - (UNIX).
- LF - Static variable in class de.siegmar.fastcsv.util.Util
-
Line feed.
- Limits - Class in de.siegmar.fastcsv.util
-
Deprecated, for removal: This API element is subject to removal in a future version.This class is deprecated and will be removed in a future release. See individual constants for alternatives.
- lineDelimiter(LineDelimiter) - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterBuilder
-
Sets the delimiter used to separate lines (default:
LineDelimiter.CRLF). - LineDelimiter - Enum Class in de.siegmar.fastcsv.writer
-
Enumeration for different line delimiters (LF, CR, CRLF, platform default).
- lower(Locale) - Static method in class de.siegmar.fastcsv.reader.FieldModifiers
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
FieldModifiers.modify(Function)instead.
M
- MAX_FIELD_COUNT - Static variable in class de.siegmar.fastcsv.util.Limits
-
Deprecated.The
MAX_FIELD_COUNTconstant defines the maximum number of fields per record. - MAX_FIELD_SIZE - Static variable in class de.siegmar.fastcsv.util.Limits
-
Deprecated.The
MAX_FIELD_SIZEconstant defines the maximum size for a single field in a CSV file. - MAX_RECORD_SIZE - Static variable in class de.siegmar.fastcsv.util.Limits
-
Deprecated.The
MAX_RECORD_SIZEconstant defines the maximum size for all fields combined in a CSV record. - maxBufferSize(int) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Defines the maximum buffer size used when parsing data.
- maxBufferSize(int) - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader.IndexedCsvReaderBuilder
-
Defines the maximum buffer size used when parsing data.
- maxFields - Variable in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder
-
The maximum number of fields a single record may have.
- maxFields - Variable in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
The maximum number of fields a single record may have.
- maxFields(int) - Method in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder
-
Defines the maximum number of fields a single record may have.
- maxFieldSize - Variable in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder
-
The maximum number of characters a single field may have.
- maxFieldSize - Variable in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
The maximum number of characters a single field may have.
- maxFieldSize(int) - Method in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder
-
Defines the maximum number of characters a single field may have.
- maxRecordSize - Variable in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder
-
The maximum number of characters a single record may have.
- maxRecordSize - Variable in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
The maximum number of characters a single record may have.
- maxRecordSize(int) - Method in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder
-
Defines the maximum number of characters a single record may have.
- modify(long, int, boolean, String) - Method in interface de.siegmar.fastcsv.reader.FieldModifier
-
Gets called for every single field (that is not a comment).
- modify(long, int, boolean, String) - Method in interface de.siegmar.fastcsv.reader.SimpleFieldModifier
-
Deprecated.
- modify(String) - Method in interface de.siegmar.fastcsv.reader.SimpleFieldModifier
-
Deprecated.Gets called for every single field (that is not a comment).
- modify(Function<? super String, String>) - Static method in class de.siegmar.fastcsv.reader.FieldModifiers
-
Builds a modifier that modifies the field value using the provided function.
- modifyComment(long, String) - Method in interface de.siegmar.fastcsv.reader.FieldModifier
-
Gets called for every comment.
- modifyComment(String) - Method in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
Modifies comment value.
- modifyField(String, boolean) - Method in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
Modifies field value.
N
- NamedCsvRecord - Class in de.siegmar.fastcsv.reader
-
Represents an immutable CSV record with named (and indexed) fields.
- NamedCsvRecordHandler - Class in de.siegmar.fastcsv.reader
-
A callback handler that returns a
NamedCsvRecordfor each record. - NamedCsvRecordHandler() - Constructor for class de.siegmar.fastcsv.reader.NamedCsvRecordHandler
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
NamedCsvRecordHandler.of()instead. - NamedCsvRecordHandler(FieldModifier) - Constructor for class de.siegmar.fastcsv.reader.NamedCsvRecordHandler
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
NamedCsvRecordHandler.builder()orNamedCsvRecordHandler.of(Consumer)instead. - NamedCsvRecordHandler(FieldModifier, String...) - Constructor for class de.siegmar.fastcsv.reader.NamedCsvRecordHandler
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
NamedCsvRecordHandler.builder()orNamedCsvRecordHandler.of(Consumer)instead. - NamedCsvRecordHandler(FieldModifier, List<String>) - Constructor for class de.siegmar.fastcsv.reader.NamedCsvRecordHandler
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
NamedCsvRecordHandler.builder()orNamedCsvRecordHandler.of(Consumer)instead. - NamedCsvRecordHandler(String...) - Constructor for class de.siegmar.fastcsv.reader.NamedCsvRecordHandler
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
NamedCsvRecordHandler.builder()orNamedCsvRecordHandler.of(Consumer)instead. - NamedCsvRecordHandler(List<String>) - Constructor for class de.siegmar.fastcsv.reader.NamedCsvRecordHandler
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
NamedCsvRecordHandler.builder()orNamedCsvRecordHandler.of(Consumer)instead. - NamedCsvRecordHandler.NamedCsvRecordHandlerBuilder - Class in de.siegmar.fastcsv.reader
-
A builder for
NamedCsvRecordHandler. - NON_EMPTY - Static variable in class de.siegmar.fastcsv.writer.QuoteStrategies
-
Enclose any field with quotes if it has content (is not empty or
null). - NONE - Enum constant in enum class de.siegmar.fastcsv.reader.CommentStrategy
-
This strategy does not detect comments.
- NOP - Static variable in class de.siegmar.fastcsv.reader.FieldModifiers
-
Modifier that does not modify anything.
O
- of() - Static method in class de.siegmar.fastcsv.reader.CsvRecordHandler
-
Constructs a new instance of this class with default settings.
- of() - Static method in class de.siegmar.fastcsv.reader.NamedCsvRecordHandler
-
Constructs a new instance of this class with default settings.
- of() - Static method in class de.siegmar.fastcsv.reader.StringArrayHandler
-
Constructs a new instance of this class with default settings.
- of(String) - Static method in enum class de.siegmar.fastcsv.writer.LineDelimiter
-
Build an enum based on the given string.
- of(Consumer<CsvRecordHandler.CsvRecordHandlerBuilder>) - Static method in class de.siegmar.fastcsv.reader.CsvRecordHandler
-
Constructs a new instance of this class with the given configuration.
- of(Consumer<NamedCsvRecordHandler.NamedCsvRecordHandlerBuilder>) - Static method in class de.siegmar.fastcsv.reader.NamedCsvRecordHandler
-
Constructs a new instance of this class with the given configuration.
- of(Consumer<StringArrayHandler.StringArrayHandlerBuilder>) - Static method in class de.siegmar.fastcsv.reader.StringArrayHandler
-
Constructs a new instance of this class with the given configuration.
- ofCsvRecord(InputStream) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new index-based
CsvReaderfor the specified input stream. - ofCsvRecord(InputStream, Charset) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new index-based
CsvReaderfor the specified input stream and character set. - ofCsvRecord(Reader) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new index-based
CsvReaderfor the specified reader. - ofCsvRecord(String) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new index-based
CsvReaderfor the specified String. - ofCsvRecord(Path) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new index-based
CsvReaderfor the specified file. - ofCsvRecord(Path) - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader.IndexedCsvReaderBuilder
-
Constructs a new
IndexedCsvReaderofCsvRecordfor the specified path using UTF-8 as the character set. - ofCsvRecord(Path, Charset) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new index-based
CsvReaderfor the specified file and character set. - ofCsvRecord(Path, Charset) - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader.IndexedCsvReaderBuilder
-
Constructs a new
IndexedCsvReaderofCsvRecordfor the specified arguments. - ofNamedCsvRecord(InputStream) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new name-based
CsvReaderfor the specified input stream. - ofNamedCsvRecord(InputStream, Charset) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new name-based
CsvReaderfor the specified input stream and character set. - ofNamedCsvRecord(Reader) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new name-based
CsvReaderfor the specified reader. - ofNamedCsvRecord(String) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new name-based
CsvReaderfor the specified String. - ofNamedCsvRecord(Path) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new name-based
CsvReaderfor the specified file. - ofNamedCsvRecord(Path, Charset) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Constructs a new name-based
CsvReaderfor the specified file and character set. - onComplete() - Method in class de.siegmar.fastcsv.reader.CollectingStatusListener
- onComplete() - Method in interface de.siegmar.fastcsv.reader.StatusListener
-
Called when the indexing finished successfully (without an exception).
- onError(Throwable) - Method in class de.siegmar.fastcsv.reader.CollectingStatusListener
- onError(Throwable) - Method in interface de.siegmar.fastcsv.reader.StatusListener
-
Called when there was an error while indexing.
- onInit(long) - Method in class de.siegmar.fastcsv.reader.CollectingStatusListener
- onInit(long) - Method in interface de.siegmar.fastcsv.reader.StatusListener
-
Called on initialization.
- onReadBytes(int) - Method in class de.siegmar.fastcsv.reader.CollectingStatusListener
- onReadBytes(int) - Method in interface de.siegmar.fastcsv.reader.StatusListener
-
Called when a new read operation has been performend.
- onReadRecord() - Method in class de.siegmar.fastcsv.reader.CollectingStatusListener
- onReadRecord() - Method in interface de.siegmar.fastcsv.reader.StatusListener
-
Called when a new record has been read.
P
- pageSize(int) - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader.IndexedCsvReaderBuilder
-
Sets the
pageSizefor pages returned byIndexedCsvReader.readPage(int)(default:IndexedCsvReader.IndexedCsvReaderBuilder.DEFAULT_PAGE_SIZE). - PLATFORM - Enum constant in enum class de.siegmar.fastcsv.writer.LineDelimiter
-
Use current platform default (
System.lineSeparator(). - Preconditions - Class in de.siegmar.fastcsv.util
-
Internal utility class.
Q
- quoteCharacter(char) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Sets the
quoteCharacterused when reading CSV data. - quoteCharacter(char) - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader.IndexedCsvReaderBuilder
-
Sets the
quoteCharacterused when reading CSV data. - quoteCharacter(char) - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterBuilder
-
Sets the character used to quote values – default:
"(double quote). - quoteEmpty(int, int) - Method in interface de.siegmar.fastcsv.writer.QuoteStrategy
-
Determine if an empty (not
null) field should be quoted. - quoteNonEmpty(int, int, String) - Method in interface de.siegmar.fastcsv.writer.QuoteStrategy
-
Determine if a data containing field should be quoted.
- quoteNull(int, int) - Method in interface de.siegmar.fastcsv.writer.QuoteStrategy
-
Determine if a
nullfield should be quoted. - QuoteStrategies - Class in de.siegmar.fastcsv.writer
-
Provides some common
QuoteStrategyimplementations. - quoteStrategy(QuoteStrategy) - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterBuilder
-
Sets the strategy that defines when optional quoting has to be performed – default: none.
- QuoteStrategy - Interface in de.siegmar.fastcsv.writer
-
A quote strategy is used to decide whether to quote fields if quoting is optional (as per RFC 4180).
R
- READ - Enum constant in enum class de.siegmar.fastcsv.reader.CommentStrategy
-
This strategy detects and returns the commented lines.
- readPage(int) - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader
-
Reads a page of records.
- recordSize - Variable in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
The total size (sum of all characters) of the current record.
- RecordWrapper<T> - Class in de.siegmar.fastcsv.reader
-
A wrapper for a record that contains information necessary for the
CsvReaderin order to determine how to process the record.
S
- self() - Method in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder
-
Method to be implemented by subclasses to return the correct type.
- self() - Method in class de.siegmar.fastcsv.reader.CsvRecordHandler.CsvRecordHandlerBuilder
- self() - Method in class de.siegmar.fastcsv.reader.NamedCsvRecordHandler.NamedCsvRecordHandlerBuilder
- self() - Method in class de.siegmar.fastcsv.reader.StringArrayHandler.StringArrayHandlerBuilder
- setComment(char[], int, int) - Method in class de.siegmar.fastcsv.reader.AbstractBaseCsvCallbackHandler
-
Called for each comment line.
- setComment(char[], int, int) - Method in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
Called for each comment line.
- setComment(char[], int, int) - Method in class de.siegmar.fastcsv.reader.CsvCallbackHandler
-
Called for each comment line.
- SimpleFieldModifier - Interface in de.siegmar.fastcsv.reader
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
FieldModifiers.modify(java.util.function.Function)instead. - SKIP - Enum constant in enum class de.siegmar.fastcsv.reader.CommentStrategy
-
This strategy detects comments but does not return the commented lines.
- skipEmptyLines(boolean) - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
-
Defines whether empty lines should be skipped when reading data.
- skipLines(int) - Method in class de.siegmar.fastcsv.reader.CsvReader
-
Skips the specified number of lines.
- skipLines(Predicate<String>, int) - Method in class de.siegmar.fastcsv.reader.CsvReader
-
Skip lines until the specified predicate matches.
- spliterator() - Method in class de.siegmar.fastcsv.reader.CsvReader
-
Constructs a
Spliteratorfor splitting and traversing the elements of this reader. - startingLineNumber - Variable in class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler
-
The starting line number of the current record.
- statusListener(StatusListener) - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader.IndexedCsvReaderBuilder
-
Sets the
statusListenerto listen for indexer status updates. - StatusListener - Interface in de.siegmar.fastcsv.reader
-
Custom status listeners have to implement this interface.
- stream() - Method in class de.siegmar.fastcsv.reader.CsvReader
-
Constructs a new sequential
Streamwith this reader as its source. - StringArrayHandler - Class in de.siegmar.fastcsv.reader
-
A
CsvCallbackHandlerimplementation that returns the fields of each record as an array of Strings. - StringArrayHandler() - Constructor for class de.siegmar.fastcsv.reader.StringArrayHandler
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
StringArrayHandler.of()instead. - StringArrayHandler(FieldModifier) - Constructor for class de.siegmar.fastcsv.reader.StringArrayHandler
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
StringArrayHandler.builder()orStringArrayHandler.of(Consumer)instead. - StringArrayHandler.StringArrayHandlerBuilder - Class in de.siegmar.fastcsv.reader
-
A builder for
StringArrayHandler. - STRIP - Static variable in class de.siegmar.fastcsv.reader.FieldModifiers
-
Modifier that modifies the field value with
String.strip().
T
- terminate() - Method in class de.siegmar.fastcsv.reader.CsvCallbackHandler
-
Called at the end of the CSV reading process.
- toConsole() - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterBuilder
-
Convenience method to write to the console (standard output).
- toString() - Method in class de.siegmar.fastcsv.reader.CollectingStatusListener
- toString() - Method in class de.siegmar.fastcsv.reader.CsvIndex
- toString() - Method in class de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
- toString() - Method in class de.siegmar.fastcsv.reader.CsvReader
- toString() - Method in class de.siegmar.fastcsv.reader.CsvRecord
- toString() - Method in class de.siegmar.fastcsv.reader.IndexedCsvReader
- toString() - Method in class de.siegmar.fastcsv.reader.NamedCsvRecord
- toString() - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterBuilder
- toString() - Method in class de.siegmar.fastcsv.writer.CsvWriter
- toString() - Method in enum class de.siegmar.fastcsv.writer.LineDelimiter
- TRIM - Static variable in class de.siegmar.fastcsv.reader.FieldModifiers
-
Modifier that modifies the field value with
String.trim().
U
- upper(Locale) - Static method in class de.siegmar.fastcsv.reader.FieldModifiers
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
FieldModifiers.modify(Function)instead. - Util - Class in de.siegmar.fastcsv.util
-
Internal utility class.
V
- valueOf(String) - Static method in enum class de.siegmar.fastcsv.reader.CommentStrategy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class de.siegmar.fastcsv.writer.LineDelimiter
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class de.siegmar.fastcsv.reader.CommentStrategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class de.siegmar.fastcsv.writer.LineDelimiter
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- wrapRecord(T) - Method in class de.siegmar.fastcsv.reader.AbstractBaseCsvCallbackHandler
-
Builds a wrapper for the record that contains information necessary for the
CsvReaderin order to determine how to process the record. - writeComment(String) - Method in class de.siegmar.fastcsv.writer.CsvWriter
-
Writes a comment line and new line character(s) at the end.
- writeField(String) - Method in class de.siegmar.fastcsv.writer.CsvWriter.CsvWriterRecord
-
Writes a field to the current record.
- writeRecord() - Method in class de.siegmar.fastcsv.writer.CsvWriter
-
Starts a new record.
- writeRecord(Iterable<String>) - Method in class de.siegmar.fastcsv.writer.CsvWriter
-
Writes a complete line - one or more fields and new line character(s) at the end.
- writeRecord(String...) - Method in class de.siegmar.fastcsv.writer.CsvWriter
-
Writes a complete line - one or more fields and new line character(s) at the end.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form|System Properties
AbstractInternalCsvCallbackHandler(int, int, int, FieldModifier)instead.