org.bibop.xml.xforge
Class TestMultiThreadXForge
java.lang.Object
|
+--org.bibop.xml.xforge.TestMultiThreadXForge
- All Implemented Interfaces:
- org.xml.sax.ErrorHandler
- public class TestMultiThreadXForge
- extends java.lang.Object
- implements org.xml.sax.ErrorHandler
A utility class to test x:forge in a multithreading environment.
- Version:
- 1.0
- Author:
- Alberto Garoffolo
Field Summary |
protected org.apache.avalon.framework.logger.Logger |
log
|
(package private) java.lang.String |
parserClass
|
static int |
threadCount
|
static int |
total
|
Method Summary |
void |
error(org.xml.sax.SAXParseException e)
Receive notification of a recoverable error. |
void |
fatalError(org.xml.sax.SAXParseException e)
Receive notification of a fatal error. |
private void |
incThreads()
|
private void |
initLogger()
|
static void |
main(java.lang.String[] args)
|
private void |
test()
|
void |
warning(org.xml.sax.SAXParseException e)
Receive notification of a warning. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parserClass
java.lang.String parserClass
log
protected org.apache.avalon.framework.logger.Logger log
total
public static int total
threadCount
public static int threadCount
TestMultiThreadXForge
public TestMultiThreadXForge()
throws java.lang.Exception
initLogger
private void initLogger()
throws java.lang.Exception
java.lang.Exception
error
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
- Receive notification of a recoverable error.
- Specified by:
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
fatalError
public void fatalError(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
- Receive notification of a fatal error.
- Specified by:
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
warning
public void warning(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
- Receive notification of a warning.
- Specified by:
warning
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
incThreads
private void incThreads()
main
public static void main(java.lang.String[] args)
test
private void test()
throws java.lang.Exception
java.lang.Exception
Copyright © 2003 Bibop Research International. All Rights Reserved.