5
|
1 package plparser;
|
|
2
|
|
3
|
|
4 public class TestParser1 {
|
|
5
|
|
6 public static void main(String arg[]) {
|
|
7 PropertyListParser<Property> p;
|
|
8 PropertyListNodeFactory<Property> lf = new PropertyFactoryImpl();
|
|
9 p = new PropertyListParser<Property>(lf);
|
|
10 Property n;
|
|
11 if (arg.length==0) {
|
|
12 arg = new String[1];
|
|
13 arg[0] = "data/alias_article.plist";
|
|
14 }
|
|
15 for(String file: arg) {
|
|
16 n = p.parseFile(file);
|
6
|
17 // if (n!=null) System.out.print(n); System.out.println(".");
|
|
18 if (n!=null) n.pp(System.out,0,0);
|
|
19 System.out.println(".");
|
5
|
20 }
|
|
21 }
|
|
22 }
|