org.tinygroup.xmlparser.formatter
Class XmlFormater

java.lang.Object
  extended by org.tinygroup.parser.formater.NodeFormaterImpl<XmlDocument,XmlNode>
      extended by org.tinygroup.xmlparser.formatter.XmlFormater
All Implemented Interfaces:
NodeFormater<XmlNode,XmlDocument>

public class XmlFormater
extends NodeFormaterImpl<XmlDocument,XmlNode>


Constructor Summary
XmlFormater()
           
 
Method Summary
protected  StringBuffer formatDocumentSelf(XmlDocument doc)
          格式化xml文档 并以StringBuffer格式返回
protected  void formatDocumentSelf(XmlDocument doc, OutputStream out)
          格式化xml文档 并在指定的输出流中输出
 
Methods inherited from class org.tinygroup.parser.formater.NodeFormaterImpl
format, format, format, format, formatNode, formatNode, getEncode, getIndentString, getIndentString, setEncode, setIndentString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlFormater

public XmlFormater()
Method Detail

formatDocumentSelf

protected StringBuffer formatDocumentSelf(XmlDocument doc)
格式化xml文档 并以StringBuffer格式返回

Specified by:
formatDocumentSelf in class NodeFormaterImpl<XmlDocument,XmlNode>
Parameters:
doc -
Returns:
StringBuffer

formatDocumentSelf

protected void formatDocumentSelf(XmlDocument doc,
                                  OutputStream out)
                           throws IOException
格式化xml文档 并在指定的输出流中输出

Specified by:
formatDocumentSelf in class NodeFormaterImpl<XmlDocument,XmlNode>
Parameters:
doc -
out -
Throws:
IOException


Copyright © 2006–2015 TinyGroup. All rights reserved.