Package org.forester.io.parsers.nhx
Class NHXParser
java.lang.Object
org.forester.io.parsers.nhx.NHXParser
- All Implemented Interfaces:
 IteratingPhylogenyParser,PhylogenyParser
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetName()final booleanhasNext()final Phylogenynext()final Phylogeny[]parse()static final Phylogeny[]static final voidparseNHX(String s, PhylogenyNode node_to_annotate, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction, boolean replace_underscores, boolean allow_errors_in_distance_to_parent, boolean replace_bell) final voidreset()final voidsetAllowErrorsInDistanceToParent(boolean allow_errors_in_distance_to_parent) final voidsetGuessRootedness(boolean guess_rootedness) final voidsetIgnoreQuotes(boolean ignore_quotes) final voidsetReplaceUnderscores(boolean replace_underscores) final voidfinal voidsetTaxonomyExtraction(NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction)  
- 
Field Details
- 
MB_BL_PATTERN
 - 
MB_PROB_PATTERN
 - 
MB_PROB_SD_PATTERN
 - 
NUMBERS_ONLY_PATTERN
 - 
REPLACE_UNDERSCORES_DEFAULT
public static final boolean REPLACE_UNDERSCORES_DEFAULT- See Also:
 
 
 - 
 - 
Constructor Details
- 
NHXParser
public NHXParser() 
 - 
 - 
Method Details
- 
getName
- Specified by:
 getNamein interfacePhylogenyParser
 - 
getTaxonomyExtraction
 - 
hasNext
public final boolean hasNext()- Specified by:
 hasNextin interfaceIteratingPhylogenyParser
 - 
next
- Specified by:
 nextin interfaceIteratingPhylogenyParser- Throws:
 NHXFormatExceptionIOException
 - 
parse
- Specified by:
 parsein interfacePhylogenyParser- Throws:
 IOException
 - 
reset
- Specified by:
 resetin interfaceIteratingPhylogenyParser- Throws:
 NHXFormatExceptionIOException
 - 
setGuessRootedness
public final void setGuessRootedness(boolean guess_rootedness)  - 
setIgnoreQuotes
public final void setIgnoreQuotes(boolean ignore_quotes)  - 
setReplaceUnderscores
public final void setReplaceUnderscores(boolean replace_underscores)  - 
setSource
- Specified by:
 setSourcein interfaceIteratingPhylogenyParser- Specified by:
 setSourcein interfacePhylogenyParser- Throws:
 NHXFormatExceptionIOException
 - 
setTaxonomyExtraction
 - 
setAllowErrorsInDistanceToParent
public final void setAllowErrorsInDistanceToParent(boolean allow_errors_in_distance_to_parent)  - 
parse
- Throws:
 NHXFormatExceptionIOException
 - 
parseNHX
public static final void parseNHX(String s, PhylogenyNode node_to_annotate, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction, boolean replace_underscores, boolean allow_errors_in_distance_to_parent, boolean replace_bell) throws NHXFormatException, PhyloXmlDataFormatException  
 -