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 ofRecord
based the state of a parser -
Method Summary
Modifier and TypeMethodDescriptioncreateMetaData
(Context context) Creates a newRecord
with a row parsed from the inputMethods inherited from class com.univocity.parsers.common.record.AbstractRecordFactory
getRecordMetaData
-
Constructor Details
-
RecordFactory
Creates a new factory ofRecord
based the state of a parser- Parameters:
context
- the parser context
-
-
Method Details
-
newRecord
Creates a newRecord
with a row parsed from the input- Specified by:
newRecord
in classAbstractRecordFactory<Record,
RecordMetaDataImpl> - Parameters:
data
- the row parsed from the input- Returns:
- a
Record
that provides many utility methods for consuming the data collected for a record parsed from the input.
-
createMetaData
- Specified by:
createMetaData
in classAbstractRecordFactory<Record,
RecordMetaDataImpl>
-