com.sun.msv.util.xml
Class DocumentFilter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
next
public DocumentHandler next
DocumentFilter
public DocumentFilter(DocumentHandler next)
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
Copyright © 2013 Oracle Corporation. All Rights Reserved.