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 DocumentHandlernext
-
Constructor Summary
Constructors Constructor Description DocumentFilter(DocumentHandler next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] buf, int start, int len)voidendDocument()voidendElement(String name)voidignorableWhitespace(char[] buf, int start, int len)voidprocessingInstruction(String target, String data)voidsetDocumentLocator(Locator loc)voidstartDocument()voidstartElement(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:
startDocumentin interfaceDocumentHandler- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException- Specified by:
endDocumentin interfaceDocumentHandler- Throws:
SAXException
-
startElement
public void startElement(String name, AttributeList atts) throws SAXException
- Specified by:
startElementin interfaceDocumentHandler- Throws:
SAXException
-
endElement
public void endElement(String name) throws SAXException
- Specified by:
endElementin interfaceDocumentHandler- Throws:
SAXException
-
characters
public void characters(char[] buf, int start, int len) throws SAXException- Specified by:
charactersin interfaceDocumentHandler- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] buf, int start, int len) throws SAXException- Specified by:
ignorableWhitespacein interfaceDocumentHandler- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String target, String data) throws SAXException
- Specified by:
processingInstructionin interfaceDocumentHandler- Throws:
SAXException
-
setDocumentLocator
public void setDocumentLocator(Locator loc)
- Specified by:
setDocumentLocatorin interfaceDocumentHandler
-
-