public class SectionReporterListParser extends Object implements BaseFileSectionParser
NOTE! The column names can be redefined by calling
BaseFileParser.setRedefinedColumnName(String, String, String)
Modifier and Type | Field and Description |
---|---|
private DbControl |
dc |
private BaseFileInfo |
info |
private long |
nextProgressReport |
private long |
progressReportInterval |
private int |
sectionCount |
private String |
totalBytes |
private Transformation |
transformation |
Constructor and Description |
---|
SectionReporterListParser(DbControl dc,
BaseFileInfo info,
Transformation transformation) |
Modifier and Type | Method and Description |
---|---|
void |
parseSection(BaseFileParser parser,
FlatFileParser ffp)
Parse the current section.
|
private final DbControl dc
private final BaseFileInfo info
private final Transformation transformation
private int sectionCount
private final String totalBytes
private final long progressReportInterval
private long nextProgressReport
public SectionReporterListParser(DbControl dc, BaseFileInfo info, Transformation transformation)
public void parseSection(BaseFileParser parser, FlatFileParser ffp) throws IOException
BaseFileSectionParser
FlatFileParser.parseHeaders()
must be called. Use
FlatFileParser.nextData()
to parse data lines.parseSection
in interface BaseFileSectionParser
parser
- The master BASEfile parser (can be used for
reporting progress, checking for interrupts, etc.)ffp
- The actual file parser, use this to get the dataIOException
- If there is a problem reading the data