public abstract class VariableFieldRecordParser<T extends VariableFieldRecordParserFactory> extends Object implements RecordParser<T>
| Constructor and Description |
|---|
VariableFieldRecordParser() |
| Modifier and Type | Method and Description |
|---|---|
T |
getFactory()
Get the parser factory instance that created this parser instance.
|
int |
getRecordCount()
Get the number of records read so far by this parser instance.
|
int |
getUnignoredFieldCount(RecordMetaData recordMetaData)
Get the unignored field count for the specified record.
|
void |
initialize()
Initialize the parser instance.
|
Record |
nextRecord()
Parse the next record from the message stream and produce a
Record instance. |
abstract List<String> |
nextRecordFieldValues()
Parse the next record from the flat file input stream and produce the set
of record field values.
|
void |
setRecordParserFactory(T factory)
Set the parser factory that created the parser instance.
|
void |
uninitialize()
Uninitialize the parser instance.
|
protected void |
validateHeader(List<String> headers) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetDataSourcepublic abstract List<String> nextRecordFieldValues() throws IOException
IOException - Error reading message stream.public final void setRecordParserFactory(T factory)
setRecordParserFactory in interface RecordParser<T extends VariableFieldRecordParserFactory>factory - The parser factory that created the parser instance.public void initialize()
throws IOException
initialize in interface RecordParser<T extends VariableFieldRecordParserFactory>IOException - Error initializing the reader.public void uninitialize()
uninitialize in interface RecordParser<T extends VariableFieldRecordParserFactory>public T getFactory()
public int getRecordCount()
public final Record nextRecord() throws IOException
Record instance.nextRecord in interface RecordParser<T extends VariableFieldRecordParserFactory>IOException - Error reading message stream.public int getUnignoredFieldCount(RecordMetaData recordMetaData)
recordMetaData - The record metadata.protected void validateHeader(List<String> headers) throws IOException
IOExceptionCopyright © 2020. All rights reserved.