BeanIO 1.2.3

org.beanio.parser.delimited
Class DelimitedRecord

java.lang.Object
  extended by org.beanio.parser.Record
      extended by org.beanio.parser.delimited.DelimitedRecord

public class DelimitedRecord
extends Record

The DelimitedRecord stores field text in a String array and works with either the CsvReader or DeimitedReader.

Since:
1.0
Author:
Kevin Seim

Constructor Summary
DelimitedRecord()
          Constructs a new DelimitedRecord.
 
Method Summary
 void clear()
          Clears the current state of the record before the next record is read.
 int getFieldCount()
          Returns the number of fields read from the input stream.
 String getFieldText(int position)
          Returns the field text at the given position in the record.
 void setValue(Object value)
          Sets the value of the record as returned from the RecordReader
 
Methods inherited from class org.beanio.parser.Record
addFieldError, addFieldErrorMessage, addRecordError, addRecordErrorMessage, getContext, getFieldOffset, getFieldOffsets, getFieldText, getFieldText, getLocale, getRecordLineNumber, getRecordName, getRecordText, hasFieldErrors, hasFieldErrors, hasRecordErrors, popField, pushField, setFieldOffset, setFieldText, setLineNumber, setLocale, setMessageContext, setRecordName, setRecordText, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelimitedRecord

public DelimitedRecord()
Constructs a new DelimitedRecord.

Method Detail

clear

public void clear()
Description copied from class: Record
Clears the current state of the record before the next record is read.

Overrides:
clear in class Record

setValue

public void setValue(Object value)
Description copied from class: Record
Sets the value of the record as returned from the RecordReader

Overrides:
setValue in class Record
Parameters:
value - the record value read by a record reader
See Also:
RecordReader

getFieldCount

public int getFieldCount()
Returns the number of fields read from the input stream.

Returns:
the number of fields

getFieldText

public String getFieldText(int position)
Returns the field text at the given position in the record.

Parameters:
position - the position of the field wihin the record
Returns:
the field text

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim