org.mod4j.dslcommon.xml
Class XmlUtil
java.lang.Object
org.mod4j.dslcommon.xml.XmlUtil
public class XmlUtil
- extends java.lang.Object
XmlUtil :
- Version:
- $Id: XmlUtil.java,v 1.1 2006/03/01 18:16:11 jwarmer Exp $
- Author:
- Jos Warmer
|
Method Summary |
static org.jdom.Document |
readXmlDocument(java.io.File file,
boolean ignoreWhitespace)
Read an Xml Document from file. |
static org.jdom.Document |
readXmlDocument(java.io.Reader reader,
boolean ignoreWhitespace)
Read an Xml Document from reader. |
static void |
writeDocument(org.jdom.Document doc,
java.io.FileOutputStream stream,
boolean newLines,
java.lang.String indent)
|
static void |
writeDocument(org.jdom.Document doc,
java.lang.String outfilename,
boolean newLines,
java.lang.String indent)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlUtil
public XmlUtil()
readXmlDocument
public static org.jdom.Document readXmlDocument(java.io.File file,
boolean ignoreWhitespace)
- Read an Xml Document from
file.
- Parameters:
file - ignoreWhitespace - If true, whitespace will be ignored
- Returns:
readXmlDocument
public static org.jdom.Document readXmlDocument(java.io.Reader reader,
boolean ignoreWhitespace)
throws org.jdom.JDOMException
- Read an Xml Document from
reader.
- Parameters:
reader - ignoreWhitespace - If true, whitespace will be ignored
- Returns:
-
- Throws:
org.jdom.JDOMException
writeDocument
public static void writeDocument(org.jdom.Document doc,
java.io.FileOutputStream stream,
boolean newLines,
java.lang.String indent)
writeDocument
public static void writeDocument(org.jdom.Document doc,
java.lang.String outfilename,
boolean newLines,
java.lang.String indent)
Copyright © 2010 Mod4j. All Rights Reserved.