com.univocity.parsers.common.record
Class RecordFactory

java.lang.Object
  extended by com.univocity.parsers.common.record.RecordFactory

public class RecordFactory
extends Object

A factory class that provides implementations of Record based on the current state of an AbstractParser(via its ParsingContext), and raw input records.


Constructor Summary
RecordFactory(Context context, int errorContentLength)
          Creates a new factory of Record based the state of a parser
 
Method Summary
 RecordMetaData getRecordMetaData()
          Returns the metadata information associated with the records generated by this factory class
 Record newRecord(String[] data)
          Creates a new Record with a row parsed from the input
 
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,
                     int errorContentLength)
Creates a new factory of Record based the state of a parser

Parameters:
context - the parser context
errorContentLength - the maximum length of contents displayed in exception messages in case of errors while parsing.
Method Detail

newRecord

public Record newRecord(String[] data)
Creates a new Record with a row parsed from the input

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.

getRecordMetaData

public RecordMetaData getRecordMetaData()
Returns the metadata information associated with the records generated by this factory class

Returns:
the record metadata.


Copyright © 2016 uniVocity Software Pty Ltd. All rights reserved.