org.znerd.xmlenc.sax
Class SAXOutputter
java.lang.Object
|
+--org.znerd.xmlenc.sax.SAXOutputter
- All Implemented Interfaces:
- ContentHandler
- public class SAXOutputter
- extends Object
- implements ContentHandler
SAX handler that outputs XML.
- Since:
- xmlenc 0.29
- Version:
- $Revision: 1.1 $ $Date: 2003/04/25 12:46:11 $
- Author:
- Ernst de Haan (znerd@FreeBSD.org)
Constructor Summary |
SAXOutputter(XMLOutputter xmlOutputter)
Constructs a new SAXOutputter that uses the specified
XMLOutputter . |
Method Summary |
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String uri,
String localName,
String qName)
|
void |
endPrefixMapping(String prefix)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
processingInstruction(String target,
String data)
|
void |
setDocumentLocator(Locator locator)
|
void |
skippedEntity(String name)
|
void |
startDocument()
|
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
|
void |
startPrefixMapping(String prefix,
String uri)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAXOutputter
public SAXOutputter(XMLOutputter xmlOutputter)
throws IllegalArgumentException
- Constructs a new
SAXOutputter
that uses the specified
XMLOutputter
.
- Parameters:
xmlOutputter
- the XMLOutputter
that should be used, cannot be
null
.- Throws:
IllegalArgumentException
- if xmlOutputter == null
.
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocator
in interface ContentHandler
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument
in interface ContentHandler
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument
in interface ContentHandler
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
- Specified by:
startPrefixMapping
in interface ContentHandler
endPrefixMapping
public void endPrefixMapping(String prefix)
throws SAXException
- Specified by:
endPrefixMapping
in interface ContentHandler
startElement
public void startElement(String uri,
String localName,
String qName,
Attributes atts)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
endElement
public void endElement(String uri,
String localName,
String qName)
throws SAXException
- Specified by:
endElement
in interface ContentHandler
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
characters
in interface ContentHandler
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
ignorableWhitespace
in interface ContentHandler
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
- Specified by:
processingInstruction
in interface ContentHandler
skippedEntity
public void skippedEntity(String name)
throws SAXException
- Specified by:
skippedEntity
in interface ContentHandler
See http://xmlenc.sourceforge.net/.