Mercurial > hg > Members > kono > PLparser
view src/plparser/TestParser1.java @ 6:563bcb96e4fa
pretty printer
author | one |
---|---|
date | Mon, 30 Aug 2010 12:35:23 +0900 |
parents | 29b5497fc942 |
children |
line wrap: on
line source
package plparser; public class TestParser1 { public static void main(String arg[]) { PropertyListParser<Property> p; PropertyListNodeFactory<Property> lf = new PropertyFactoryImpl(); p = new PropertyListParser<Property>(lf); Property n; if (arg.length==0) { arg = new String[1]; arg[0] = "data/alias_article.plist"; } for(String file: arg) { n = p.parseFile(file); // if (n!=null) System.out.print(n); System.out.println("."); if (n!=null) n.pp(System.out,0,0); System.out.println("."); } } }