com.oroad.stxx.util
Class NoDocumentFilter

java.lang.Object
  extended bycom.oroad.stxx.util.AbstractSAXFilter
      extended bycom.oroad.stxx.util.NoDocumentFilter
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler, XMLConsumer

public class NoDocumentFilter
extends AbstractSAXFilter

Swallows the document events during an export of a JDOM document.

Author:
Don Brown

Field Summary
 
Fields inherited from class com.oroad.stxx.util.AbstractSAXFilter
contentHandler, lexicalHandler
 
Constructor Summary
NoDocumentFilter(XMLConsumer handler)
          Constructor for the JDOMElementOutputter object
 
Method Summary
 void endDocument()
          Overrides to take no action
 void startDocument()
          Overrides to take no action
 
Methods inherited from class com.oroad.stxx.util.AbstractSAXFilter
characters, comment, endCDATA, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, setLexicalHandler, skippedEntity, startCDATA, startDTD, startElement, startEntity, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoDocumentFilter

public NoDocumentFilter(XMLConsumer handler)
Constructor for the JDOMElementOutputter object

Parameters:
handler - The handler to forward events to
Method Detail

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Overrides to take no action

Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class AbstractSAXFilter
Throws:
org.xml.sax.SAXException - If something goes wrong

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
Overrides to take no action

Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class AbstractSAXFilter
Throws:
org.xml.sax.SAXException - If something goes wrong