net.sf.xolite.utils
Class StringXMLSerializer
java.lang.Object
net.sf.xolite.impl.BaseXMLSerializer
net.sf.xolite.impl.FlowXMLSerializer
net.sf.xolite.utils.StringXMLSerializer
- All Implemented Interfaces:
- XMLSerializer
public class StringXMLSerializer
- extends FlowXMLSerializer
XML serializer writing output to a java String.
Methods inherited from class net.sf.xolite.impl.FlowXMLSerializer |
attributeImpl, charactersImpl, closeElementStartImpl, endComplexElementImpl, endDocumentImpl, endInlineElementImpl, endTextElementImpl, getIndentationSpaceCount, getWriteXmlHeader, isBreakingBetweenAttributes, isBreakingForFirstAttribute, isUsingLineBreaks, isUsingTabs, setAttributeFormatting, setFormatting, setWriteXmlHeader, startElementImpl, writeAttributeBreak, writeDataCharacters, writeIndentation, writePrefixedName |
Methods inherited from class net.sf.xolite.impl.BaseXMLSerializer |
attribute, attribute, characters, charactersMultiLine, definePrefixMapping, endDocument, endElement, getCustomObject, getLastElementLength, getLastElementName, getLevel, putCustomObject, simpleElement, startDocument, startElement, startPrefixMapping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringXMLSerializer
public StringXMLSerializer()
serializeObject
public void serializeObject(XMLSerializable serial)
throws XMLSerializeException
- Throws:
XMLSerializeException
getSerializedDocument
public String getSerializedDocument()
startDocumentImpl
protected void startDocumentImpl()
throws IOException
- Overrides:
startDocumentImpl
in class FlowXMLSerializer
- Throws:
IOException
writeNewLine
protected void writeNewLine()
throws IOException
- Specified by:
writeNewLine
in class FlowXMLSerializer
- Throws:
IOException
writeString
protected void writeString(String text)
throws IOException
- Specified by:
writeString
in class FlowXMLSerializer
- Throws:
IOException
writeCharacter
protected void writeCharacter(char ch)
throws IOException
- Specified by:
writeCharacter
in class FlowXMLSerializer
- Throws:
IOException
Copyright © 2012. All Rights Reserved.