Class RecordFactory
- java.lang.Object
-
- com.univocity.parsers.common.record.AbstractRecordFactory<Record,com.univocity.parsers.common.record.RecordMetaDataImpl>
-
- com.univocity.parsers.common.record.RecordFactory
-
public class RecordFactory extends AbstractRecordFactory<Record,com.univocity.parsers.common.record.RecordMetaDataImpl>
A factory class that provides implementations ofRecordbased 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 ofRecordbased the state of a parser
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.univocity.parsers.common.record.RecordMetaDataImplcreateMetaData(Context context)RecordnewRecord(java.lang.String[] data)Creates a newRecordwith 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 newRecordwith a row parsed from the input- Specified by:
newRecordin classAbstractRecordFactory<Record,com.univocity.parsers.common.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
public com.univocity.parsers.common.record.RecordMetaDataImpl createMetaData(Context context)
- Specified by:
createMetaDatain classAbstractRecordFactory<Record,com.univocity.parsers.common.record.RecordMetaDataImpl>
-
-