org.apache.ws.jaxme
Interface XMLWriter

All Superinterfaces:
org.xml.sax.ContentHandler
All Known Implementing Classes:
CharSetXMLWriter, OrderedAttributeXMLWriter, PassThroughXMLWriter, XMLWriterImpl

public interface XMLWriter
extends org.xml.sax.ContentHandler

A simple serializer for XML documents.

Author:
Jochen Wiedmann

Method Summary
 boolean canEncode(char c)
          Returns whether the XMLWriter can encode the character c without an escape sequence like &#ddd;.
 void init(JMMarshallerImpl pMarshaller)
          Initializes the XMLWriter by setting the Marshaller which created it.
 void setWriter(java.io.Writer pWriter)
          Sets the Writer to which the Marshaller ought to write.
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 

Method Detail

init

void init(JMMarshallerImpl pMarshaller)
          throws JAXBException

Initializes the XMLWriter by setting the Marshaller which created it.

Throws:
JAXBException

setWriter

void setWriter(java.io.Writer pWriter)
               throws JAXBException

Sets the Writer to which the Marshaller ought to write.

Throws:
JAXBException

canEncode

boolean canEncode(char c)

Returns whether the XMLWriter can encode the character c without an escape sequence like &#ddd;.