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 NCBITaxonomyLoadernodes - something that reads the nodes.dmp filejava.io.IOExceptionParseExceptionprotected 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 NCBITaxonomyLoadernames - something that reads the names.dmp filejava.io.IOExceptionParseException