public class CharSetXMLWriter extends XMLWriterImpl
XMLWriterImpl,
using theCharset from Java 1.4.| Constructor and Description |
|---|
CharSetXMLWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEncode(char c)
Returns whether the XMLWriter can encode the character
c without an escape sequence like &#ddd;. |
void |
startDocument()
Starts a document.
|
characters, endDocument, endElement, endPrefixMapping, getDocumentLocator, getEncoding, getIndentString, getLineFeed, getWriter, ignorableWhitespace, isDeclarating, isFlushing, isIndenting, processingInstruction, setDeclarating, setDocumentLocator, setEncoding, setFlushing, setIndenting, setIndentString, setLineFeed, setWriter, skippedEntity, startElement, startPrefixMappingpublic void startDocument()
throws SAXException
XMLWriterImplStarts a document.
startDocument in interface ContentHandlerstartDocument in class XMLWriterImplSAXException - Not actually thrown, just for compliance to the interface specification.public boolean canEncode(char c)
XMLWriterReturns whether the XMLWriter can encode the character
c without an escape sequence like &#ddd;.
canEncode in interface XMLWritercanEncode in class XMLWriterImplc - The character being checked for escaping.Copyright © 2005-2014 Apache Software Foundation. All Rights Reserved.