Package org.forester.io.parsers.nexus
Class NexusPhylogeniesParser
- java.lang.Object
-
- org.forester.io.parsers.nexus.NexusPhylogeniesParser
-
- All Implemented Interfaces:
IteratingPhylogenyParser
,PhylogenyParser
public final class NexusPhylogeniesParser extends java.lang.Object implements IteratingPhylogenyParser, PhylogenyParser
-
-
Constructor Summary
Constructors Constructor Description NexusPhylogeniesParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
boolean
hasNext()
Phylogeny
next()
Phylogeny[]
parse()
void
reset()
void
setIgnoreQuotes(boolean ignore_quotes_in_nh_data)
void
setReplaceUnderscores(boolean replace_underscores)
void
setSource(java.lang.Object nexus_source)
void
setTaxonomyExtraction(NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfacePhylogenyParser
-
hasNext
public final boolean hasNext()
- Specified by:
hasNext
in interfaceIteratingPhylogenyParser
-
next
public final Phylogeny next() throws NHXFormatException, java.io.IOException
- Specified by:
next
in interfaceIteratingPhylogenyParser
- Throws:
NHXFormatException
java.io.IOException
-
parse
public final Phylogeny[] parse() throws java.io.IOException
- Specified by:
parse
in interfacePhylogenyParser
- Throws:
java.io.IOException
-
reset
public final void reset() throws java.io.FileNotFoundException, java.io.IOException
- Specified by:
reset
in interfaceIteratingPhylogenyParser
- Throws:
java.io.FileNotFoundException
java.io.IOException
-
setIgnoreQuotes
public final void setIgnoreQuotes(boolean ignore_quotes_in_nh_data)
-
setReplaceUnderscores
public final void setReplaceUnderscores(boolean replace_underscores)
-
setSource
public final void setSource(java.lang.Object nexus_source) throws PhylogenyParserException, java.io.IOException
- Specified by:
setSource
in interfaceIteratingPhylogenyParser
- Specified by:
setSource
in interfacePhylogenyParser
- Throws:
PhylogenyParserException
java.io.IOException
-
setTaxonomyExtraction
public final void setTaxonomyExtraction(NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction)
-
-