public abstract class XMLTools
extends java.lang.Object
构造器和说明 |
---|
XMLTools() |
限定符和类型 | 方法和说明 |
---|---|
static void |
readFileXML(XMLReadable xmlReadable,
java.io.File xmlFile)
从文件中读取对象
|
static void |
readInputStreamXML(XMLReadable xmlReadable,
java.io.InputStream inputStream)
从输入流中读取对象
|
static void |
writeOutputStreamXML(XMLWriter xmlWriter,
java.io.OutputStream outputStream)
将对象写出到输出流中
|
public static void readInputStreamXML(XMLReadable xmlReadable, java.io.InputStream inputStream) throws java.lang.Exception
xmlReadable
- xml读取对象inputStream
- xml输入流java.lang.Exception
public static void readFileXML(XMLReadable xmlReadable, java.io.File xmlFile) throws java.lang.Exception
xmlReadable
- xml读取对象xmlFile
- xml文件java.lang.Exception
public static void writeOutputStreamXML(XMLWriter xmlWriter, java.io.OutputStream outputStream)
xmlWriter
- XML输出器outputStream
- 输出流