com.sun.msv.util.xml
Class DocumentFilter

java.lang.Object
  extended by com.sun.msv.util.xml.DocumentFilter
All Implemented Interfaces:
DocumentHandler

public class DocumentFilter
extends Object
implements DocumentHandler

SAX DocumentHandler event interceptor. This object acts as a filter to DocumentHandler events. Derived class should override methods of interest and perform somethings.

Author:
Kohsuke KAWAGUCHI

Field Summary
 DocumentHandler next
           
 
Constructor Summary
DocumentFilter(DocumentHandler next)
           
 
Method Summary
 void characters(char[] buf, int start, int len)
           
 void endDocument()
           
 void endElement(String name)
           
 void ignorableWhitespace(char[] buf, int start, int len)
           
 void processingInstruction(String target, String data)
           
 void setDocumentLocator(Locator loc)
           
 void startDocument()
           
 void startElement(String name, AttributeList atts)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

public DocumentHandler next
Constructor Detail

DocumentFilter

public DocumentFilter(DocumentHandler next)
Method Detail

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface DocumentHandler
Throws:
SAXException

endDocument

public void endDocument()
                 throws SAXException
Specified by:
endDocument in interface DocumentHandler
Throws:
SAXException

startElement

public void startElement(String name,
                         AttributeList atts)
                  throws SAXException
Specified by:
startElement in interface DocumentHandler
Throws:
SAXException

endElement

public void endElement(String name)
                throws SAXException
Specified by:
endElement in interface DocumentHandler
Throws:
SAXException

characters

public void characters(char[] buf,
                       int start,
                       int len)
                throws SAXException
Specified by:
characters in interface DocumentHandler
Throws:
SAXException

ignorableWhitespace

public void ignorableWhitespace(char[] buf,
                                int start,
                                int len)
                         throws SAXException
Specified by:
ignorableWhitespace in interface DocumentHandler
Throws:
SAXException

processingInstruction

public void processingInstruction(String target,
                                  String data)
                           throws SAXException
Specified by:
processingInstruction in interface DocumentHandler
Throws:
SAXException

setDocumentLocator

public void setDocumentLocator(Locator loc)
Specified by:
setDocumentLocator in interface DocumentHandler