// ManagerTest.java - A test of multiple Catalog Managers /* * Copyright 2001-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import java.io.FileNotFoundException; import java.io.IOException; import java.util.Vector; import java.util.Date; import java.util.GregorianCalendar; import java.net.MalformedURLException; import org.xml.sax.*; import org.xml.sax.helpers.*; import javax.xml.parsers.*; import org.apache.xml.resolver.tools.ResolvingXMLReader; import org.apache.xml.resolver.Catalog; import org.apache.xml.resolver.CatalogManager; import org.apache.xml.resolver.helpers.Debug; import org.apache.xml.resolver.apps.XParseError; /** *
A simple command-line XML parsing application.
* *This class tests the ability of the XML Catalog code to support * multiple catalog manager instances. *
* *Usage: ManagerTest document.xml
* *The process ends with error-level 1, if there errors.
* * @see org.apache.xml.resolver.tools.ResolvingXMLReader * * @author Norman Walsh * Norman.Walsh@Sun.COM * * @version 1.0 */ public class JarTest extends TestParser { /** The main entry point */ public static void main (String[] args) throws FileNotFoundException, IOException { for (int i=0; i