final static private byte BUFFERED_READER = 3;
final static private byte STRING_BUILDER = 4;
private boolean _guess_rootedness;
- private boolean _has_next;
private boolean _ignore_quotes;
private byte _input_type;
private int _source_length;
return _taxonomy_extraction;
}
- public boolean hasNext() {
- return _has_next;
- }
-
/**
* Parses the source set with setSource( final Object nhx_source ). Returns
* the Phylogenies found in the source as Phylogeny[].
*/
@Override
public Phylogeny[] parse() throws IOException, NHXFormatException {
- setHasNext( false );
boolean in_comment = false;
boolean saw_colon = false;
boolean saw_open_bracket = false;
+ " StringBuffer, char[], File," + " or InputStream " + " [attempt to parse object of "
+ nhx_source.getClass() + "]." );
}
- setHasNext( true );
}
public void setTaxonomyExtraction( final NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction ) {
setReplaceUnderscores( REPLACE_UNDERSCORES_DEFAULT );
setGuessRootedness( GUESS_ROOTEDNESS_DEFAULT );
setIgnoreQuotes( IGNORE_QUOTES_DEFAULT );
- setHasNext( false );
}
private boolean isGuessRootedness() {
_current_phylogeny = current_phylogeny;
}
- private void setHasNext( final boolean has_next ) {
- _has_next = has_next;
- }
-
private void setInputType( final byte input_type ) {
_input_type = input_type;
}