org.tinygroup.xmlparser.formatter
Class XmlFormater
java.lang.Object
org.tinygroup.parser.formater.NodeFormaterImpl<XmlDocument,XmlNode>
org.tinygroup.xmlparser.formatter.XmlFormater
- All Implemented Interfaces:
- NodeFormater<XmlNode,XmlDocument>
public class XmlFormater
- extends NodeFormaterImpl<XmlDocument,XmlNode>
| 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 |
XmlFormater
public XmlFormater()
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.