Class RecordFactory
- java.lang.Object
-
- com.univocity.parsers.common.record.AbstractRecordFactory<Record,RecordMetaDataImpl>
-
- com.univocity.parsers.common.record.RecordFactory
-
public class RecordFactory extends AbstractRecordFactory<Record,RecordMetaDataImpl>
A factory class that provides implementations ofRecord
based on the current state of anAbstractParser
(via itsParsingContext
), and raw input records.
-
-
Field Summary
-
Fields inherited from class com.univocity.parsers.common.record.AbstractRecordFactory
metaData
-
-
Constructor Summary
Constructors Constructor Description RecordFactory(Context context)
Creates a new factory ofRecord
based the state of a parser
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordMetaDataImpl
createMetaData(Context context)
Record
newRecord(java.lang.String[] data)
Creates a newRecord
with a row parsed from the input-
Methods inherited from class com.univocity.parsers.common.record.AbstractRecordFactory
getRecordMetaData
-
-
-
-
Method Detail
-
newRecord
public Record newRecord(java.lang.String[] data)
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
public RecordMetaDataImpl createMetaData(Context context)
- Specified by:
createMetaData
in classAbstractRecordFactory<Record,RecordMetaDataImpl>
-
-