com.univocity.parsers.common.record
Class RecordFactory

java.lang.Object
  extended by com.univocity.parsers.common.record.AbstractRecordFactory<Record,com.univocity.parsers.common.record.RecordMetaDataImpl>
      extended by 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.


Field Summary
 
Fields inherited from class com.univocity.parsers.common.record.AbstractRecordFactory
metaData
 
Constructor Summary
RecordFactory(Context context)
          Creates a new factory of Record based the state of a parser
 
Method Summary
 com.univocity.parsers.common.record.RecordMetaDataImpl createMetaData(Context context)
           
 Record newRecord(String[] data)
          Creates a new Record with a row parsed from the input
 
Methods inherited from class com.univocity.parsers.common.record.AbstractRecordFactory
getRecordMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordFactory

public RecordFactory(Context context)
Creates a new factory of Record based the state of a parser

Parameters:
context - the parser context
Method Detail

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.