org.apache.ws.jaxme

Interface XMLWriter

All Superinterfaces:
org.xml.sax.ContentHandler
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(Writer pWriter)
Sets the Writer to which the Marshaller ought to write.

Method Details

canEncode

public boolean canEncode(char c)
Returns whether the XMLWriter can encode the character c without an escape sequence like &#ddd;.

init

public void init(JMMarshallerImpl pMarshaller)
            throws JAXBException
Initializes the XMLWriter by setting the Marshaller which created it.

setWriter

public void setWriter(Writer pWriter)
            throws JAXBException
Sets the Writer to which the Marshaller ought to write.