org.arch4j.parse
Class DelimitedRecordReader
java.lang.Object
|
+--org.arch4j.parse.RecordReader
|
+--org.arch4j.parse.DelimitedRecordReader
- public class DelimitedRecordReader
- extends RecordReader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_DELIMITER
public static final int DEFAULT_DELIMITER
- See Also:
- Constant Field Values
DelimitedRecordReader
public DelimitedRecordReader()
DelimitedRecordReader
public DelimitedRecordReader(ReadOnlyProperty aFormat)
throws FormatException
setFormat
public void setFormat(ReadOnlyProperty aFormat)
throws FormatException
- Description copied from class:
RecordReader
- provide the readed with the property tree that defines the format of the
files it must read.
- Overrides:
setFormat
in class RecordReader
- Parameters:
aFormat
- property tree defining file format. See subclass implementations.
FormatException
getRawRecord
protected String[] getRawRecord(BufferedReader reader,
String[] rawBuffer)
throws RecordDataInputException,
IOException
- Description copied from class:
RecordReader
- get the next set of raw data from the input stream, or return null if at the end
of the stream.
- Specified by:
getRawRecord
in class RecordReader
- Parameters:
reader
- buffered reader servicing the raw data input stream.rawBuffer
- raw data buffer to reuse for this record if possible. Could be null.
- Returns:
- filled raw data buffer
RecordDataInputException
IOException
createRecord
protected RecordData createRecord(String[] rawData)
throws FormatException,
RecordDataInputException
- Description copied from class:
RecordReader
- create an
RecordData
object from a raw data buffer, based on the format
properties.
- Specified by:
createRecord
in class RecordReader
- Parameters:
rawData
- raw record data
- Returns:
- populated record object
- Throws:
RecordDataInputException
- when there is a problem retreiving data from this
record, but processing of further records can continue.
FormatException
- when there is a fundamental problem with the record format
definition and all processing should cease.
initFormatData
protected void initFormatData()
throws FormatException
- Specified by:
initFormatData
in class RecordReader
FormatException
Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.