Home / Development / Documentation / 2.0.44 / NewickStringWriter
TreeGraph 2
 


info.bioinfweb.treegraph.document.io.newick
Class NewickStringWriter

java.lang.Object
  extended by info.bioinfweb.treegraph.document.io.newick.NewickStringChars
      extended by info.bioinfweb.treegraph.document.io.newick.NewickStringWriter

public class NewickStringWriter
extends NewickStringChars


Field Summary
 
Fields inherited from class info.bioinfweb.treegraph.document.io.newick.NewickStringChars
COMMENT_END, COMMENT_START, ELEMENT_SEPERATOR, FREE_NAME_BLANK, LENGTH_SEPERATOR, NAME_DELIMITER, SUBTREE_END, SUBTREE_START, TERMINAL_SYMBOL
 
Constructor Summary
NewickStringWriter()
           
 
Method Summary
private static String formatName(Node node, NodeBranchDataAdapter adapter)
           
private static boolean isFreeName(String name)
           
static String write(Tree tree, NodeBranchDataAdapter internalAdapter, NodeBranchDataAdapter leafAdapter, NodeBranchDataAdapter branchLengthAdapter)
           
private static String writeSubtree(Node root, NodeBranchDataAdapter internalAdapter, NodeBranchDataAdapter leafAdapter, NodeBranchDataAdapter branchLengthAdapter)
           
 
Methods inherited from class info.bioinfweb.treegraph.document.io.newick.NewickStringChars
isCharAfterLength, isFreeNameChar, isFreeNameFirstChar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewickStringWriter

public NewickStringWriter()
Method Detail

isFreeName

private static boolean isFreeName(String name)

formatName

private static String formatName(Node node,
                                 NodeBranchDataAdapter adapter)

writeSubtree

private static String writeSubtree(Node root,
                                   NodeBranchDataAdapter internalAdapter,
                                   NodeBranchDataAdapter leafAdapter,
                                   NodeBranchDataAdapter branchLengthAdapter)

write

public static String write(Tree tree,
                           NodeBranchDataAdapter internalAdapter,
                           NodeBranchDataAdapter leafAdapter,
                           NodeBranchDataAdapter branchLengthAdapter)