public interface BaseFileSectionParser
ThreadSignalHandler.checkInterrupted()
at regular intervals. The parser
should also update progress by calling BaseFileParser.setProgress(long, String)
.
Note that progress should be reported as the number of bytes parsed,
which can simply can be retreived by calling FlatFileParser.getParsedBytes()
.Modifier and Type | Method and Description |
---|---|
void |
parseSection(BaseFileParser parser,
FlatFileParser ffp)
Parse the current section.
|
void parseSection(BaseFileParser parser, FlatFileParser ffp) throws java.io.IOException
FlatFileParser.parseHeaders()
must be called. Use
FlatFileParser.nextData()
to parse data lines.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 datajava.io.IOException
- If there is a problem reading the data