mb parsing
[jalview.git] / forester / java / src / org / forester / test / examples / Example1.java
index 045ee6b..cd65138 100644 (file)
@@ -31,24 +31,25 @@ import java.io.IOException;
 
 import org.forester.archaeopteryx.Archaeopteryx;
 import org.forester.io.parsers.PhylogenyParser;
+import org.forester.io.parsers.util.ParserUtils;
 import org.forester.phylogeny.Phylogeny;
-import org.forester.util.ForesterUtil;
+import org.forester.phylogeny.PhylogenyMethods;
 
 public class Example1 {
 
     public static void main( final String[] args ) {
-        // Reads in (a) tree(s) from a file.
+        // Reading-in of (a) tree(s) from a file.
         final File treefile = new File( "/home/czmasek/tol_117_TEST.xml" );
         PhylogenyParser parser = null;
         try {
-            parser = ForesterUtil.createParserDependingOnFileType( treefile, true );
+            parser = ParserUtils.createParserDependingOnFileType( treefile, true );
         }
         catch ( final IOException e ) {
             e.printStackTrace();
         }
         Phylogeny[] phys = null;
         try {
-            phys = ForesterUtil.readPhylogenies( parser, treefile );
+            phys = PhylogenyMethods.readPhylogenies( parser, treefile );
         }
         catch ( final IOException e ) {
             e.printStackTrace();