public abstract class VariableFieldRecordParserFactory extends Object implements RecordParserFactory, VisitorAppender
| Constructor and Description |
|---|
VariableFieldRecordParserFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVisitors(VisitorConfigMap visitorMap)
Add visitors to the supplied Cisitor map.
|
void |
buildRecordMetaData() |
boolean |
fieldsInMessage() |
void |
fixupRecordDelimiter() |
String |
getRecordElementName()
Get the default record element name.
|
RecordMetaData |
getRecordMetaData() |
RecordMetaData |
getRecordMetaData(List<String> fieldValues)
Get the
RecordMetaData instance for the specified fields. |
int |
getSkipLines() |
boolean |
isMultiTypeRecordSet()
Is the parser configured to parse multiple record types.
|
void |
readRecord(Reader recordReader,
StringBuilder recordBuffer,
int recordNumber)
Read a record from the specified reader (up to the next recordDelimiter).
|
boolean |
strict()
Is this parser instance strict.
|
boolean |
validateHeader() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewRecordParserpublic int getSkipLines()
public boolean fieldsInMessage()
public boolean validateHeader()
public String getRecordElementName()
public RecordMetaData getRecordMetaData()
public RecordMetaData getRecordMetaData(List<String> fieldValues)
RecordMetaData instance for the specified fields.fieldValues - The fields.public boolean isMultiTypeRecordSet()
public boolean strict()
public void addVisitors(VisitorConfigMap visitorMap)
VisitorAppenderaddVisitors in interface VisitorAppendervisitorMap - The visitor map to be added to.@Initialize public final void fixupRecordDelimiter()
@Initialize public final void buildRecordMetaData()
public void readRecord(Reader recordReader, StringBuilder recordBuffer, int recordNumber) throws IOException
recordReader - The record Reader.recordBuffer - The record buffer into which the record is read.IOException - Error reading record.Copyright © 2020. All rights reserved.