public class PassThroughXMLWriter extends XMLWriterImpl
A simple serializer for XML documents extending the default XMLWriter implementation, XMLWriterImpl. The basic difference against its parent is that this writer doesn't escape characters for reasons of the underlying encoding.
| Constructor and Description |
|---|
PassThroughXMLWriter() |
| 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;. |
characters, endDocument, endElement, endPrefixMapping, getDocumentLocator, getMarshaller, getWriter, ignorableWhitespace, init, processingInstruction, setDocumentLocator, setWriter, skippedEntity, startDocument, startElement, startPrefixMappingpublic 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 XMLWriterImpl