public class CharSetXMLWriter extends XMLWriterImpl
XMLWriterImpl,
using theCharset from Java 1.4.| Modifier and Type | Field and Description |
|---|---|
private java.nio.charset.CharsetEncoder |
charsetEncoder |
curIndent| 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 org.xml.sax.SAXException
XMLWriterImplStarts a document.
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class XMLWriterImplorg.xml.sax.SAXException - 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.