Class RecordFactory

    • 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​(java.lang.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>