public class ToXMLContentHandler extends ToTextContentHandler
Constructor and Description |
---|
ToXMLContentHandler() |
ToXMLContentHandler(java.io.OutputStream stream,
java.lang.String encoding)
Creates an XML serializer that writes to the given byte stream
using the given character encoding.
|
ToXMLContentHandler(java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Writes the given characters to the given character stream.
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
void |
startDocument()
Writes the XML prefix.
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri) |
endDocument, ignorableWhitespace, toString
public ToXMLContentHandler(java.io.OutputStream stream, java.lang.String encoding) throws java.io.UnsupportedEncodingException
stream
- output streamencoding
- output encodingjava.io.UnsupportedEncodingException
- if the encoding is unsupportedpublic ToXMLContentHandler(java.lang.String encoding)
public ToXMLContentHandler()
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
startPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class ToTextContentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class ToTextContentHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
ToTextContentHandler
characters
in interface org.xml.sax.ContentHandler
characters
in class ToTextContentHandler
org.xml.sax.SAXException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"