fi.iki.hsivonen.xml
Class ContentHandlerFilter
java.lang.Object
fi.iki.hsivonen.xml.ContentHandlerFilter
- All Implemented Interfaces:
- ContentHandler
- Direct Known Subclasses:
- CharacterEncodingDeclarationFilter, EmptyElementFilter, SkippedEntityErrorFilter, TagInferenceFilter
public class ContentHandlerFilter
- extends Object
- implements ContentHandler
- Version:
- $Id: ContentHandlerFilter.java,v 1.1 2005/08/13 12:18:42 hsivonen Exp $
- Author:
- hsivonen
Method Summary |
void |
characters(char[] chars,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String uri,
String local,
String qName)
|
void |
endPrefixMapping(String arg0)
|
protected void |
err(String message)
|
protected void |
fatal(String message)
|
ContentHandler |
getContentHandler()
Returns the contentHandler. |
ErrorHandler |
getErrorHandler()
Returns the errorHandler. |
void |
ignorableWhitespace(char[] arg0,
int arg1,
int arg2)
|
void |
processingInstruction(String arg0,
String arg1)
|
void |
setContentHandler(ContentHandler contentHandler)
Sets the contentHandler. |
void |
setDocumentLocator(Locator locator)
|
void |
setErrorHandler(ErrorHandler errorHandler)
Sets the errorHandler. |
void |
skippedEntity(String arg0)
|
void |
startDocument()
|
void |
startElement(String uri,
String local,
String qName,
Attributes attrs)
|
void |
startPrefixMapping(String arg0,
String arg1)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contentHandler
protected ContentHandler contentHandler
errorHandler
protected ErrorHandler errorHandler
locator
protected Locator locator
ContentHandlerFilter
public ContentHandlerFilter()
characters
public void characters(char[] chars,
int start,
int length)
throws SAXException
- Specified by:
characters
in interface ContentHandler
- Parameters:
chars
- start
- length
-
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument
in interface ContentHandler
- Throws:
SAXException
endElement
public void endElement(String uri,
String local,
String qName)
throws SAXException
- Specified by:
endElement
in interface ContentHandler
- Parameters:
uri
- local
- qName
-
- Throws:
SAXException
endPrefixMapping
public void endPrefixMapping(String arg0)
throws SAXException
- Specified by:
endPrefixMapping
in interface ContentHandler
- Parameters:
arg0
-
- Throws:
SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] arg0,
int arg1,
int arg2)
throws SAXException
- Specified by:
ignorableWhitespace
in interface ContentHandler
- Parameters:
arg0
- arg1
- arg2
-
- Throws:
SAXException
processingInstruction
public void processingInstruction(String arg0,
String arg1)
throws SAXException
- Specified by:
processingInstruction
in interface ContentHandler
- Parameters:
arg0
- arg1
-
- Throws:
SAXException
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocator
in interface ContentHandler
- Parameters:
locator
-
skippedEntity
public void skippedEntity(String arg0)
throws SAXException
- Specified by:
skippedEntity
in interface ContentHandler
- Parameters:
arg0
-
- Throws:
SAXException
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument
in interface ContentHandler
- Throws:
SAXException
startElement
public void startElement(String uri,
String local,
String qName,
Attributes attrs)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Parameters:
uri
- local
- qName
- attrs
-
- Throws:
SAXException
startPrefixMapping
public void startPrefixMapping(String arg0,
String arg1)
throws SAXException
- Specified by:
startPrefixMapping
in interface ContentHandler
- Parameters:
arg0
- arg1
-
- Throws:
SAXException
fatal
protected void fatal(String message)
throws SAXException
- Throws:
SAXException
err
protected void err(String message)
throws SAXException
- Throws:
SAXException
getContentHandler
public ContentHandler getContentHandler()
- Returns the contentHandler.
- Returns:
- the contentHandler
setContentHandler
public void setContentHandler(ContentHandler contentHandler)
- Sets the contentHandler.
- Parameters:
contentHandler
- the contentHandler to set
getErrorHandler
public ErrorHandler getErrorHandler()
- Returns the errorHandler.
- Returns:
- the errorHandler
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
- Sets the errorHandler.
- Parameters:
errorHandler
- the errorHandler to set