/* * BioJava development code * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. If you do not have a copy, * see: * * http://www.gnu.org/copyleft/lesser.html * * Copyright for this code is held jointly by the individual * authors. These should be listed in @author doc comments. * * For more information on the BioJava project and its aims, * or to join the biojava-l mailing list, visit the home page * at: * * http://www.biojava.org/ * */ package org.biojava.bio.program.sax; import org.xml.sax.ContentHandler; import org.xml.sax.XMLReader; /** * Test application for use by SAX Parser writers. Allows simple functions * of a SAX Parser to be developed/debugged without being dependent on other * packages.This is useful in complex development/build environments *
* Copyright © 2001 Cambridge Antibody Technology. * *
* Primary author -
String[]
representation of a pathname
* @exception Exception if an error occurs
*/
public static void main(String[] args) throws Exception {
String oInput = null;
String oClassName = null;
// Catch wrong number of arguments or help requests
if ( (args.length != 2) ||
(args[0].equals("-help")) ||
(args[0].equals("-h")) ) {
System.out.println();
System.out.println();
System.out.println(
"Given the name of a SAXParser (i.e. the name of the class, and");
System.out.println(
"and the pathname of an example file you wish to parse, the");
System.out.println(
"application outputs an XML representation of the data");
System.out.println();
System.out.println(
"Usage: java GenericSAXParserTest