Mercurial > hg > Members > kono > PLparser
view src/plparser/TestParser1.java @ 5:29b5497fc942
full test passed.
author | one |
---|---|
date | Sun, 29 Aug 2010 20:28:00 +0900 |
parents | |
children | 563bcb96e4fa |
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("."); } } }