net.sf.xolite.utils
Class ConsoleXMLSerializer

java.lang.Object
  extended by net.sf.xolite.impl.BaseXMLSerializer
      extended by net.sf.xolite.impl.FlowXMLSerializer
          extended by net.sf.xolite.utils.ConsoleXMLSerializer
All Implemented Interfaces:
XMLSerializer

public class ConsoleXMLSerializer
extends FlowXMLSerializer

XML serializer writing output to the java console.
Just for debug, this serializer does not pay attention to encoding or or reserved characters.


Field Summary
 
Fields inherited from class net.sf.xolite.impl.BaseXMLSerializer
STATE_ELEMENT_CLOSED, STATE_ELEMENT_START_CLOSED, STATE_ELEMENT_START_OPENED, STATE_FINISHED, STATE_INIT, STATE_TEXT, STATE_TEXT_MULTI_LINE
 
Constructor Summary
ConsoleXMLSerializer()
           
 
Method Summary
static void dump(XMLSerializable root)
           
protected  void writeCharacter(char ch)
           
protected  void writeDataCharacters(String text)
           
 void writeDocument(XMLSerializable root)
           
protected  void writeNewLine()
           
protected  void writeString(String text)
           
 
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, startDocumentImpl, startElementImpl, writeAttributeBreak, 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
 

Constructor Detail

ConsoleXMLSerializer

public ConsoleXMLSerializer()
Method Detail

dump

public static void dump(XMLSerializable root)

writeDocument

public void writeDocument(XMLSerializable root)
                   throws XMLSerializeException
Throws:
XMLSerializeException

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

writeDataCharacters

protected void writeDataCharacters(String text)
                            throws IOException
Overrides:
writeDataCharacters 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.