org.arch4j.parse
Class FixedRecordReader
java.lang.Object
|
+--org.arch4j.parse.RecordReader
|
+--org.arch4j.parse.FixedRecordReader
- public class FixedRecordReader
- extends RecordReader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedRecordReader
public FixedRecordReader()
FixedRecordReader
public FixedRecordReader(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
initFormatData
protected void initFormatData()
throws FormatException
- Specified by:
initFormatData
in class RecordReader
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[] rawBuffer)
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:
rawBuffer
- 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.
Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.