Top Description Fields Constructors Methods
com.univocity.parsers.common.record

public Class RecordFactory

extends AbstractRecordFactory<Record, RecordMetaDataImpl<C extends Context>>
Class Inheritance
Imports
com.univocity.parsers.common.*

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

Inherited from com.univocity.parsers.common.record.AbstractRecordFactory:
metaData

Constructor Summary

AccessConstructor and Description
public
RecordFactory(Context
the parser context
context
)

Creates a new factory of Record based the state of a parser

Method Summary

Modifier and TypeMethod and Description
public RecordMetaDataImpl<C extends Context>
public Record

Returns:

a Record that provides many utility methods for consuming the data collected for a record parsed from the input.
newRecord
(String[]
the row parsed from the input
data
)

Implements abstract com.univocity.parsers.common.record.AbstractRecordFactory.newRecord.

Creates a new Record with a row parsed from the input
Inherited from com.univocity.parsers.common.record.AbstractRecordFactory:
getRecordMetaData

Constructor Detail

RecordFactoryback to summary
public RecordFactory(Context context)

Creates a new factory of Record based the state of a parser

Parameters
context:Context

the parser context

Method Detail

createMetaDataback to summary
public RecordMetaDataImpl<C extends Context> createMetaData(Context context)

Implements abstract com.univocity.parsers.common.record.AbstractRecordFactory.createMetaData.

Annotations
@Override
newRecordback to summary
public Record newRecord(String[] data)

Implements abstract com.univocity.parsers.common.record.AbstractRecordFactory.newRecord.

Creates a new Record with a row parsed from the input

Parameters
data:String[]

the row parsed from the input

Returns:Record

a Record that provides many utility methods for consuming the data collected for a record parsed from the input.

Annotations
@Override