1 /* 2 $Header: /cvsroot/ebxmlrr/ebxmlrr/test/com/sun/ebxml/registry/ISO3166ClassificationSchemeMarshalTest.java,v 1.1 2001/12/16 14:53:19 skchonghk Exp $ 3 */ 4 package com.sun.ebxml.registry; 5 6 import java.io.*; 7 import org.exolab.castor.xml.*; 8 import org.oasis.ebxml.registry.bindings.query.*; 9 import org.oasis.ebxml.registry.bindings.rim.*; 10 import org.oasis.ebxml.registry.bindings.rs.*; 11 import com.sun.ebxml.registry.util.*; 12 13 /*** 14 Testing program for ISO3166Importer 15 */ 16 17 public class ISO3166ClassificationSchemeMarshalTest 18 { 19 public static void main(String [] args) throws Exception 20 { 21 if (args.length < 2) 22 { 23 System.out.println("usage: java " 24 + "ISO3166ClassificationSchemeMarshalTest " 25 + "<ISO 3166 input file> <marshalling output file>"); 26 return; 27 } 28 29 ISO3166Importer importer = new ISO3166Importer(args[0], 30 UUIDFactory.getInstance()); 31 ClassificationScheme iso3166 = importer.getClassificationScheme(); 32 FileWriter outputWriter = new FileWriter(args[1]); 33 Marshaller.marshal(iso3166, outputWriter); 34 } 35 }

This page was automatically generated by Maven