Package org.apache.ws.commons.serialize
Class PassThroughXMLWriter
- java.lang.Object
-
- org.apache.ws.commons.serialize.XMLWriterImpl
-
- org.apache.ws.commons.serialize.PassThroughXMLWriter
-
- All Implemented Interfaces:
XMLWriter
,org.xml.sax.ContentHandler
public class PassThroughXMLWriter extends XMLWriterImpl
A subclass ofXMLWriterImpl
, which is escaping nothing.
-
-
Field Summary
-
Fields inherited from class org.apache.ws.commons.serialize.XMLWriterImpl
curIndent
-
-
Constructor Summary
Constructors Constructor Description PassThroughXMLWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEncode(char c)
Returns whether the XMLWriter can encode the characterc
without an escape sequence like &#ddd;.-
Methods inherited from class org.apache.ws.commons.serialize.XMLWriterImpl
characters, endDocument, endElement, endPrefixMapping, getDocumentLocator, getEncoding, getIndentString, getLineFeed, getWriter, ignorableWhitespace, isDeclarating, isFlushing, isIndenting, processingInstruction, setDeclarating, setDocumentLocator, setEncoding, setFlushing, setIndenting, setIndentString, setLineFeed, setWriter, skippedEntity, startDocument, startElement, startPrefixMapping
-
-
-
-
Method Detail
-
canEncode
public boolean canEncode(char c)
Description copied from interface:XMLWriter
Returns whether the XMLWriter can encode the character
c
without an escape sequence like &#ddd;.- Specified by:
canEncode
in interfaceXMLWriter
- Overrides:
canEncode
in classXMLWriterImpl
- Parameters:
c
- The character being checked for escaping.- Returns:
- Whether to encode the character.
-
-