Package 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
-
-
Field Summary
Fields Modifier and Type Field Description DocumentHandler
next
-
Constructor Summary
Constructors Constructor Description DocumentFilter(DocumentHandler next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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 interfaceDocumentHandler
- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException
- Specified by:
endDocument
in interfaceDocumentHandler
- Throws:
SAXException
-
startElement
public void startElement(String name, AttributeList atts) throws SAXException
- Specified by:
startElement
in interfaceDocumentHandler
- Throws:
SAXException
-
endElement
public void endElement(String name) throws SAXException
- Specified by:
endElement
in interfaceDocumentHandler
- Throws:
SAXException
-
characters
public void characters(char[] buf, int start, int len) throws SAXException
- Specified by:
characters
in interfaceDocumentHandler
- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] buf, int start, int len) throws SAXException
- Specified by:
ignorableWhitespace
in interfaceDocumentHandler
- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String target, String data) throws SAXException
- Specified by:
processingInstruction
in interfaceDocumentHandler
- Throws:
SAXException
-
setDocumentLocator
public void setDocumentLocator(Locator loc)
- Specified by:
setDocumentLocator
in interfaceDocumentHandler
-
-