com.univocity.parsers.common.record
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 of Record based on the current state
of an AbstractParser(via its ParsingContext), and raw input records.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecordFactory
public RecordFactory(Context context)
- Creates a new factory of
Record based the state of a parser
- Parameters:
context - the parser context
newRecord
public Record newRecord(String[] data)
- Creates a new
Record with a row parsed from the input
- Specified by:
newRecord in class AbstractRecordFactory<Record,com.univocity.parsers.common.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 com.univocity.parsers.common.record.RecordMetaDataImpl createMetaData(Context context)
- Specified by:
createMetaData in class AbstractRecordFactory<Record,com.univocity.parsers.common.record.RecordMetaDataImpl>
Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.