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

public abstract Class AbstractRecordFactory<R extends Record, M extends RecordMetaData>

extends Object
Class Inheritance
Known Direct Subclasses
com.univocity.parsers.common.record.RecordFactory
Type Parameters
<R>
the specific type of Record that is provided
Imports
com.univocity.parsers.common.*

An abstract factory class which allows subclasses to provide implementations of Record

Field Summary

Modifier and TypeField and Description
protected final M

Constructor Summary

AccessConstructor and Description
public
AbstractRecordFactory(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 abstract M
public final M

Returns:

the record metadata.
getRecordMetaData
()

Returns the metadata information associated with the records generated by this factory class

public abstract R

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
)

Creates a new Record with a row parsed from the input

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

metaDataback to summary
protected final M metaData

Constructor Detail

AbstractRecordFactoryback to summary
public AbstractRecordFactory(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 abstract M createMetaData(Context context)
getRecordMetaDataback to summary
public final M getRecordMetaData()

Returns the metadata information associated with the records generated by this factory class

Returns:M

the record metadata.

newRecordback to summary
public abstract R newRecord(String[] data)

Creates a new Record with a row parsed from the input

Parameters
data:String[]

the row parsed from the input

Returns:R

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