public class SimpleNCBITaxonomyLoader extends java.lang.Object implements NCBITaxonomyLoader
Constructor and Description |
---|
SimpleNCBITaxonomyLoader() |
Modifier and Type | Method and Description |
---|---|
protected NCBITaxon |
findTaxon(java.lang.Object[] theKeys) |
NCBITaxon |
readName(java.io.BufferedReader names)
Reads the next entry from the names.dmp file and returns the corresponding
NCBITaxon object with the name added in already.
|
NCBITaxon |
readNode(java.io.BufferedReader nodes)
Reads the next entry from the nodes.dmp file and returns the corresponding
NCBITaxon object.
|
public NCBITaxon readNode(java.io.BufferedReader nodes) throws java.io.IOException, ParseException
readNode
in interface NCBITaxonomyLoader
nodes
- something that reads the nodes.dmp filejava.io.IOException
ParseException
protected NCBITaxon findTaxon(java.lang.Object[] theKeys)
public NCBITaxon readName(java.io.BufferedReader names) throws java.io.IOException, ParseException
for (Iterator i = taxon.getNameClasses().iterator(); i.hasNext(); ) {
taxon.getNames((String)i.next()).clear();
}
readName
in interface NCBITaxonomyLoader
names
- something that reads the names.dmp filejava.io.IOException
ParseException