jhomenet.xml
Class Reporter
java.lang.Object
jhomenet.xml.Reporter
- All Implemented Interfaces:
- DocHandler
public class Reporter
- extends java.lang.Object
- implements DocHandler
This class is the most basic possible
implementation of the DocHandler class.
It simply reports all events to System.out
as they occur.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Reporter
public Reporter()
startDocument
public void startDocument()
- Specified by:
startDocument in interface DocHandler
endDocument
public void endDocument()
- Specified by:
endDocument in interface DocHandler
startElement
public void startElement(java.lang.String elem,
java.util.Hashtable h)
- Specified by:
startElement in interface DocHandler
endElement
public void endElement(java.lang.String elem)
- Specified by:
endElement in interface DocHandler
text
public void text(java.lang.String text)
- Specified by:
text in interface DocHandler
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Usage: java Reporter [xml file(s)]
- Throws:
java.lang.Exception
reportOnFile
public static void reportOnFile(java.lang.String file)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2004-2005 David Irwin. All Rights Reserved.