jhomenet.xml
Class Reporter

java.lang.Object
  extended by 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.


Constructor Summary
Reporter()
           
 
Method Summary
 void endDocument()
           
 void endElement(java.lang.String elem)
           
static void main(java.lang.String[] args)
          Usage: java Reporter [xml file(s)]
static void reportOnFile(java.lang.String file)
           
 void startDocument()
           
 void startElement(java.lang.String elem, java.util.Hashtable h)
           
 void text(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reporter

public Reporter()
Method Detail

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.