Package de.hsh.graja.util.marshal
Class CDataXMLStreamWriter
- java.lang.Object
-
- de.hsh.graja.util.marshal.DelegatingXMLStreamWriter
-
- de.hsh.graja.util.marshal.CDataXMLStreamWriter
-
- All Implemented Interfaces:
XMLStreamWriter
public class CDataXMLStreamWriter extends DelegatingXMLStreamWriter
Implementation which is able to decide to use a CDATA section for a string.
-
-
Field Summary
-
Fields inherited from class de.hsh.graja.util.marshal.DelegatingXMLStreamWriter
delegate
-
-
Constructor Summary
Constructors Constructor Description CDataXMLStreamWriter(XMLStreamWriter del)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeCharacters(char[] text, int start, int len)
Write text to the outputvoid
writeCharacters(String text)
-
Methods inherited from class de.hsh.graja.util.marshal.DelegatingXMLStreamWriter
close, flush, getNamespaceContext, getPrefix, getProperty, setDefaultNamespace, setNamespaceContext, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeCData, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement, writeStartElement
-
-
-
-
Constructor Detail
-
CDataXMLStreamWriter
public CDataXMLStreamWriter(XMLStreamWriter del)
-
-
Method Detail
-
writeCharacters
public void writeCharacters(char[] text, int start, int len) throws XMLStreamException
Write text to the output- Specified by:
writeCharacters
in interfaceXMLStreamWriter
- Overrides:
writeCharacters
in classDelegatingXMLStreamWriter
- Parameters:
text
- the value to writestart
- the starting position in the arraylen
- the number of characters to write- Throws:
XMLStreamException
-
writeCharacters
public void writeCharacters(String text) throws XMLStreamException
- Specified by:
writeCharacters
in interfaceXMLStreamWriter
- Overrides:
writeCharacters
in classDelegatingXMLStreamWriter
- Throws:
XMLStreamException
-
-