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,ContentHandler
A subclass of
XMLWriterImpl,
which is escaping nothing.-
Field Summary
Fields inherited from class org.apache.ws.commons.serialize.XMLWriterImpl
curIndent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEncode(char c) Returns whether the XMLWriter can encode the charactercwithout 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, startPrefixMappingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
PassThroughXMLWriter
public PassThroughXMLWriter()
-
-
Method Details
-
canEncode
public boolean canEncode(char c) Description copied from interface:XMLWriterReturns whether the XMLWriter can encode the character
cwithout an escape sequence like &#ddd;.- Specified by:
canEncodein interfaceXMLWriter- Overrides:
canEncodein classXMLWriterImpl- Parameters:
c- The character being checked for escaping.- Returns:
- Whether to encode the character.
-