|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeImporter
Interface for importers that do trees
Method Summary | |
---|---|
boolean |
hasTree()
This can be used to read one tree at a time in a loop:
List
return whether another tree is available. |
Tree |
importNextTree()
Import a single tree |
List<Tree> |
importTrees()
Import all the trees |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
boolean hasTree() throws IOException, ImportException
List trees = new ArrayList();
while (hasTree()) {
trees.add(importNextTree());
}
return whether another tree is available.
IOException
ImportException
Tree importNextTree() throws IOException, ImportException
IOException
ImportException
List<Tree> importTrees() throws IOException, ImportException
IOException
ImportException
- Any type of tree is fine.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |