public class SimpleNCBITaxonomyLoader extends Object implements NCBITaxonomyLoader
Constructor and Description |
---|
SimpleNCBITaxonomyLoader() |
Modifier and Type | Method and Description |
---|---|
protected NCBITaxon |
findTaxon(Object[] theKeys) |
NCBITaxon |
readName(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(BufferedReader nodes)
Reads the next entry from the nodes.dmp file and returns the corresponding
NCBITaxon object.
|
public SimpleNCBITaxonomyLoader()
public NCBITaxon readNode(BufferedReader nodes) throws IOException, ParseException
readNode
in interface NCBITaxonomyLoader
nodes
- something that reads the nodes.dmp fileIOException
ParseException
public NCBITaxon readName(BufferedReader names) throws 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 fileIOException
ParseException
Copyright © 2014 BioJava. All rights reserved.