jebl.evolution.io
Class NewickExporter

java.lang.Object
  extended by jebl.evolution.io.NewickExporter
All Implemented Interfaces:
TreeExporter

public class NewickExporter
extends Object
implements TreeExporter

Author:
Andrew Rambaut, Alexei Drummond

Constructor Summary
NewickExporter(Writer writer)
           
 
Method Summary
 void exportTree(Tree tree)
          Export a single tree
 void exportTrees(Collection<? extends Tree> trees)
          Export a collection of trees
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewickExporter

public NewickExporter(Writer writer)
Method Detail

exportTree

public void exportTree(Tree tree)
                throws IOException
Export a single tree

Specified by:
exportTree in interface TreeExporter
Parameters:
tree -
Throws:
IOException

exportTrees

public void exportTrees(Collection<? extends Tree> trees)
                 throws IOException
Export a collection of trees

Specified by:
exportTrees in interface TreeExporter
Parameters:
trees -
Throws:
IOException