Class AbstractRecordFactory<R extends Record,M extends RecordMetaData>
- java.lang.Object
-
- com.univocity.parsers.common.record.AbstractRecordFactory<R,M>
-
- Type Parameters:
R- the specific type ofRecordthat is provided
- Direct Known Subclasses:
RecordFactory
public abstract class AbstractRecordFactory<R extends Record,M extends RecordMetaData> extends java.lang.ObjectAn abstract factory class which allows subclasses to provide implementations ofRecord
-
-
Constructor Summary
Constructors Constructor Description AbstractRecordFactory(Context context)Creates a new factory ofRecordbased the state of a parser
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract McreateMetaData(Context context)MgetRecordMetaData()Returns the metadata information associated with the records generated by this factory classabstract RnewRecord(java.lang.String[] data)Creates a newRecordwith a row parsed from the input
-
-
-
Field Detail
-
metaData
protected final M extends RecordMetaData metaData
-
-
Method Detail
-
newRecord
public abstract R newRecord(java.lang.String[] data)
Creates a newRecordwith a row parsed from the input- 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.
-
getRecordMetaData
public final M getRecordMetaData()
Returns the metadata information associated with the records generated by this factory class- Returns:
- the record metadata.
-
-