Package | Description |
---|---|
com.univocity.parsers.common | |
com.univocity.parsers.common.iterators | |
com.univocity.parsers.common.record |
Modifier and Type | Method and Description |
---|---|
<T extends Record> |
AbstractWriter.processRecord(T record) |
<T extends Record> |
AbstractWriter.processRecords(T[] records)
Iterates over all records, processes each one with the
RowWriterProcessor provided by CommonWriterSettings.getRowWriterProcessor() , and
writes them. |
<T extends Record> |
AbstractWriter.processRecordToString(T record)
Processes the data given for an individual record with the
RowWriterProcessor provided by CommonWriterSettings.getRowWriterProcessor() ,
then writes it to a String . |
<T extends Record> |
AbstractWriter.writeRecord(T row)
Writes the data given for an individual record.
|
<T extends Record> |
AbstractWriter.writeRecordToString(T row)
Writes the data given for an individual record to a
String . |
Modifier and Type | Method and Description |
---|---|
Record |
AbstractParser.parseNextRecord()
Parses the next record from the input.
|
Record |
AbstractParser.parseRecord(String line)
Parses a single line from a String in the format supported by the parser implementation.
|
Record |
ContextWrapper.toRecord(String[] row) |
Record |
Context.toRecord(String[] row)
Converts the given parsed row to a
Record |
Record |
DefaultContext.toRecord(String[] row) |
Record |
ParsingContextWrapper.toRecord(String[] row) |
Modifier and Type | Method and Description |
---|---|
IterableResult<Record,ParsingContext> |
AbstractParser.iterateRecords(File input)
Provides an
IterableResult for iterating records parsed from the input. |
IterableResult<Record,ParsingContext> |
AbstractParser.iterateRecords(File input,
Charset encoding)
Provides an
IterableResult for iterating records parsed from the input. |
IterableResult<Record,ParsingContext> |
AbstractParser.iterateRecords(File input,
String encoding)
Provides an
IterableResult for iterating records parsed from the input. |
IterableResult<Record,ParsingContext> |
AbstractParser.iterateRecords(InputStream input)
Provides an
IterableResult for iterating records parsed from the input. |
IterableResult<Record,ParsingContext> |
AbstractParser.iterateRecords(InputStream input,
Charset encoding)
Provides an
IterableResult for iterating records parsed from the input. |
IterableResult<Record,ParsingContext> |
AbstractParser.iterateRecords(InputStream input,
String encoding)
Provides an
IterableResult for iterating records parsed from the input. |
IterableResult<Record,ParsingContext> |
AbstractParser.iterateRecords(Reader input)
Provides an
IterableResult for iterating records parsed from the input. |
List<Record> |
AbstractParser.parseAllRecords()
Parses all remaining
Record s from the input and returns them in a list. |
List<Record> |
AbstractParser.parseAllRecords(File file)
Parses all records from a file and returns them in a list.
|
List<Record> |
AbstractParser.parseAllRecords(File file,
Charset encoding)
Parses all records from a file and returns them in a list.
|
List<Record> |
AbstractParser.parseAllRecords(File file,
Charset encoding,
int expectedRowCount)
Parses all records from a file and returns them in a list.
|
List<Record> |
AbstractParser.parseAllRecords(File file,
int expectedRowCount)
Parses all records from a file and returns them in a list.
|
List<Record> |
AbstractParser.parseAllRecords(File file,
String encoding)
Parses all records from a file and returns them in a list.
|
List<Record> |
AbstractParser.parseAllRecords(File file,
String encoding,
int expectedRowCount)
Parses all records from a file and returns them in a list.
|
List<Record> |
AbstractParser.parseAllRecords(InputStream input)
Parses all records from an input stream and returns them in a list.
|
List<Record> |
AbstractParser.parseAllRecords(InputStream input,
Charset encoding)
Parses all records from an input stream and returns them in a list.
|
List<Record> |
AbstractParser.parseAllRecords(InputStream input,
Charset encoding,
int expectedRowCount)
Parses all records from an input stream and returns them in a list.
|
List<Record> |
AbstractParser.parseAllRecords(InputStream input,
int expectedRowCount)
Parses all records from an input stream and returns them in a list.
|
List<Record> |
AbstractParser.parseAllRecords(InputStream input,
String encoding)
Parses all records from an input stream and returns them in a list.
|
List<Record> |
AbstractParser.parseAllRecords(InputStream input,
String encoding,
int expectedRowCount)
Parses all records from an input stream and returns them in a list.
|
List<Record> |
AbstractParser.parseAllRecords(int expectedRowCount)
Parses all remaining
Record s from the input and returns them in a list. |
List<Record> |
AbstractParser.parseAllRecords(Reader reader)
Parses all records from the input and returns them in a list.
|
List<Record> |
AbstractParser.parseAllRecords(Reader reader,
int expectedRowCount)
Parses all records from the input and returns them in a list.
|
Modifier and Type | Method and Description |
---|---|
<T extends Record> |
AbstractWriter.processRecords(T[] records)
Iterates over all records, processes each one with the
RowWriterProcessor provided by CommonWriterSettings.getRowWriterProcessor() , and
writes them. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractWriter.writeRecords(Collection<? extends Record> rows)
Iterates over all records and writes them to the output.
|
<K> void |
AbstractWriter.writeRecords(Map<K,String> headerMapping,
Map<K,? extends Record> rowData)
Writes the values of a given map to multiple output records
Each value is expected to be iterable and the result of this method will produce the number of records equal to the longest iterable.
|
void |
AbstractWriter.writeRecordsAndClose(Collection<? extends Record> allRows)
Iterates over all records, writes them and closes the output.
|
<K> void |
AbstractWriter.writeRecordsAndClose(Map<K,? extends Record> rowData)
Writes the values of a given map to multiple output records and closes the output when finished.
|
<K> void |
AbstractWriter.writeRecordsAndClose(Map<K,String> headerMapping,
Map<K,? extends Record> rowData)
Writes the values of a given map to multiple output records and closes the output when finished.
|
List<String> |
AbstractWriter.writeRecordsToString(Collection<? extends Record> rows)
Iterates over all records and writes them to a
List of String . |
<K> List<String> |
AbstractWriter.writeRecordsToString(Map<K,String> headerMapping,
Map<K,? extends Record> rowData)
Writes the values of a given map to a
List of String formatted to according to the specified output format. |
Modifier and Type | Method and Description |
---|---|
protected Record |
RecordIterator.nextResult() |
Modifier and Type | Class and Description |
---|---|
class |
AbstractRecordFactory<R extends Record,M extends RecordMetaData>
An abstract factory class which allows subclasses to provide implementations of
Record |
Modifier and Type | Method and Description |
---|---|
Record |
RecordFactory.newRecord(String[] data)
Creates a new
Record with a row parsed from the input |
Copyright © 2022 Univocity Software Pty Ltd. All rights reserved.