org.apache.ws.jaxme.impl
Class CharSetXMLWriter

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

public class CharSetXMLWriter
extends XMLWriterImpl

A simple serializer for XML documents using the Charset from Java 1.4.

Author:
Jochen Wiedmann

Constructor Summary
CharSetXMLWriter()
           
 
Method Summary
 boolean canEncode(char c)
          Returns whether the XMLWriter can encode the character c without an escape sequence like &#ddd;.
 void init(JMMarshallerImpl pController)
          Sets the JaxbXMLSerializers Marshaller.
 
Methods inherited from class org.apache.ws.jaxme.impl.XMLWriterImpl
characters, endDocument, endElement, endPrefixMapping, getDocumentLocator, getMarshaller, getWriter, ignorableWhitespace, 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

CharSetXMLWriter

public CharSetXMLWriter()
Method Detail

init

public void init(JMMarshallerImpl pController)
          throws JAXBException
Description copied from class: XMLWriterImpl

Sets the JaxbXMLSerializers Marshaller.

Specified by:
init in interface XMLWriter
Overrides:
init in class XMLWriterImpl
Throws:
JAXBException

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