Devsphere.com


com.devsphere.xml.benchmark
Class Main1

java.lang.Object
  |
  +--com.devsphere.xml.benchmark.MainBase
        |
        +--com.devsphere.xml.benchmark.Main1

public class Main1
extends MainBase

This is the main class that tests the SAX 1.0 and DOM Level 1 parsing and also their mix.

Command Line Syntax:

    java  <command> <recordCount> <threadCount> [-n] [-v]

Arguments:

Valid Commands:

See Also:
MainBase, SDXOldBuilder, SDXOldController

Field Summary
 
Fields inherited from class com.devsphere.xml.benchmark.MainBase
command, garbage, namespaces, recordCount, RUNTIME, threadCount, validation
 
Constructor Summary
protected Main1(java.lang.String[] args)
          Does the initialization
 
Method Summary
static void main(java.lang.String[] args)
          The main method of the application
protected  void parseWithDOM(java.io.InputStream in)
          Parses an XML database with DOM Level 1
protected  void parseWithSAX(java.io.InputStream in)
          Parses an XML database with SAX 1.0
protected  void parseWithSAXDOMIX(java.io.InputStream in)
          Parses an XML database with SAXDOMIX
 
Methods inherited from class com.devsphere.xml.benchmark.MainBase
cacheFile, createDatabase, done, getDocumentBuilder, getSAXParser, main, parseDatabase, parseDatabase, parseDatabaseMultithreading
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main1

protected Main1(java.lang.String[] args)
Does the initialization

Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
The main method of the application

java.lang.Exception

parseWithSAX

protected void parseWithSAX(java.io.InputStream in)
                     throws java.io.IOException,
                            org.xml.sax.SAXException,
                            javax.xml.parsers.ParserConfigurationException
Parses an XML database with SAX 1.0

Specified by:
parseWithSAX in class MainBase
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

parseWithSAXDOMIX

protected void parseWithSAXDOMIX(java.io.InputStream in)
                          throws java.io.IOException,
                                 org.xml.sax.SAXException,
                                 javax.xml.parsers.ParserConfigurationException
Parses an XML database with SAXDOMIX

Specified by:
parseWithSAXDOMIX in class MainBase
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

parseWithDOM

protected void parseWithDOM(java.io.InputStream in)
                     throws java.io.IOException,
                            org.xml.sax.SAXException,
                            javax.xml.parsers.ParserConfigurationException
Parses an XML database with DOM Level 1

Specified by:
parseWithDOM in class MainBase
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

 Devsphere.com