Interface TreeImporter
- All Known Implementing Classes:
NewickImporter, NexusImporter
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasTree()This can be used to read one tree at a time in a loop:Listreturn whether another tree is available.trees = new ArrayList (); while (hasTree()) { trees.add(importNextTree()); } Import a single treeImport all the treesMethods inherited from interface Iterable
forEach, iterator, spliterator
-
Method Details
-
hasTree
This can be used to read one tree at a time in a loop:Listreturn whether another tree is available.trees = new ArrayList (); while (hasTree()) { trees.add(importNextTree()); } - Throws:
IOExceptionImportException
-
importNextTree
Import a single tree- Returns:
- the tree
- Throws:
IOExceptionImportException
-
importTrees
Import all the trees- Returns:
- the list of trees
- Throws:
IOExceptionImportException- Any type of tree is fine.
-