01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.search.rdm;
07:
08: import com.sun.portal.search.soif.*;
09:
10: import java.io.*;
11:
12: public class TestRDMTaxonomy {
13:
14: public static void main(String args[]) throws Exception {
15: RDMTaxonomy tax = new RDMTaxonomy(new SOIFInputStream(
16: "d:/taxonomy.rdm"));
17: System.out.println("\n\nPreorder dump\n");
18: tax.apply(RDM.RDM_TAX_PREORDER, new TaxDumper());
19: System.out.println("\n\nPostorder dump\n");
20: tax.apply(RDM.RDM_TAX_POSTORDER, new TaxDumper());
21: }
22:
23: }
|