Project 1

cscie259.project1.mf
Class DefaultHandler

java.lang.Object
  extended bycscie259.project1.mf.DefaultHandler
All Implemented Interfaces:
ContentHandler
Direct Known Subclasses:
DOMBuilder, XMLSerializer

public class DefaultHandler
extends java.lang.Object
implements ContentHandler

A simplified version of org.xml.sax.helpers.DefaultHandler. Essentially, this class does nothing with the content encountered by an XML parser. It exists to facilitate the development of more useful ContentHandlers by providing, quite simply, a default implementation of ContentHandler's methods. You MAY NOT modify this file.

Version:
6.0
Author:
Computer Science E-259

Constructor Summary
DefaultHandler()
           
 
Method Summary
 void characters(java.lang.String content)
          Should be called immediately after a chunk of character data is parsed.
 void endDocument()
          Should be called immediately after an XML document is parsed.
 void endElement(java.lang.String name)
          Should be called immediately after an end tag is parsed.
 void startDocument()
          Should be called immediately before an XML document is parsed.
 void startElement(java.lang.String name, Attributes atts)
          Should be called immediately after a start tag is parsed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHandler

public DefaultHandler()
Method Detail

characters

public void characters(java.lang.String content)
Should be called immediately after a chunk of character data is parsed.

Specified by:
characters in interface ContentHandler
Parameters:
content - parsed character data

endDocument

public void endDocument()
Should be called immediately after an XML document is parsed.

Specified by:
endDocument in interface ContentHandler

endElement

public void endElement(java.lang.String name)
Should be called immediately after an end tag is parsed.

Specified by:
endElement in interface ContentHandler
Parameters:
name - closed element's name

startDocument

public void startDocument()
Should be called immediately before an XML document is parsed.

Specified by:
startDocument in interface ContentHandler

startElement

public void startElement(java.lang.String name,
                         Attributes atts)
Should be called immediately after a start tag is parsed.

Specified by:
startElement in interface ContentHandler
Parameters:
name - The opened element's name.
atts - A list of the opened element's attributes.

Project 1