public class SectionAssaysParser extends Object implements BaseFileSectionParser
NOTE! The column names can be redefined by calling BaseFileParser.setRedefinedColumnName(String, String, String)
section assays columns id\tname\tparents count 2 % 100 The first child 1/2/3 101 The second child 4/5/6
Modifier and Type | Field and Description |
---|---|
private DbControl |
dc |
private BaseFileInfo |
info |
Constructor and Description |
---|
SectionAssaysParser(DbControl dc,
BaseFileInfo info)
Creates a new 'section assays' parser.
|
Modifier and Type | Method and Description |
---|---|
void |
parseSection(BaseFileParser parser,
FlatFileParser ffp)
Parse the current section.
|
private final DbControl dc
private final BaseFileInfo info
public SectionAssaysParser(DbControl dc, BaseFileInfo info)
dc
- The DbControl to use for database accessinfo
- Information collector for the file we are parsingpublic 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