Class RecordFactory
java.lang.Object
com.univocity.parsers.common.record.AbstractRecordFactory<Record,RecordMetaDataImpl>
com.univocity.parsers.common.record.RecordFactory
A factory class that provides implementations of
Record based on the current state
of an AbstractParser(via its ParsingContext), and raw input records.-
Field Summary
Fields inherited from class com.univocity.parsers.common.record.AbstractRecordFactory
metaData -
Constructor Summary
ConstructorsConstructorDescriptionRecordFactory(Context context) Creates a new factory ofRecordbased the state of a parser -
Method Summary
Modifier and TypeMethodDescriptioncreateMetaData(Context context) Creates a newRecordwith a row parsed from the inputMethods inherited from class com.univocity.parsers.common.record.AbstractRecordFactory
getRecordMetaData
-
Constructor Details
-
RecordFactory
Creates a new factory ofRecordbased the state of a parser- Parameters:
context- the parser context
-
-
Method Details
-
newRecord
Creates a newRecordwith a row parsed from the input- Specified by:
newRecordin classAbstractRecordFactory<Record,RecordMetaDataImpl> - Parameters:
data- the row parsed from the input- Returns:
- a
Recordthat provides many utility methods for consuming the data collected for a record parsed from the input.
-
createMetaData
- Specified by:
createMetaDatain classAbstractRecordFactory<Record,RecordMetaDataImpl>
-