org.apache.ws.jaxme.impl
Class PassThroughXMLWriter

java.lang.Object
  extended by org.apache.ws.jaxme.impl.XMLWriterImpl
      extended by org.apache.ws.jaxme.impl.PassThroughXMLWriter
All Implemented Interfaces:
XMLWriter, org.xml.sax.ContentHandler

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.

Author:
Ias

Constructor Summary
PassThroughXMLWriter()
           
 
Method Summary
 boolean canEncode(char c)
          Returns whether the XMLWriter can encode the character c without an escape sequence like &#ddd;.
 
Methods inherited from class org.apache.ws.jaxme.impl.XMLWriterImpl
characters, endDocument, endElement, endPrefixMapping, getDocumentLocator, getMarshaller, getWriter, ignorableWhitespace, init, processingInstruction, setDocumentLocator, setWriter, skippedEntity, startDocument, startElement, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassThroughXMLWriter

public PassThroughXMLWriter()
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 interface XMLWriter
Overrides:
canEncode in class XMLWriterImpl