java.lang.Objectorg.objectweb.telosys.util.XmlUtil
Utility class for XML operations ( set of static methods )
Method Summary | |
static org.w3c.dom.Document |
loadFile(java.lang.String sFileName)
Deprecated. |
static org.w3c.dom.Document |
parse(java.io.File file)
Parse the given File object |
static org.w3c.dom.Document |
parse(java.io.InputStream is)
Parse the given InputStream |
static org.w3c.dom.Document |
parse(java.lang.String sFileName)
Parse the given File name |
static java.lang.String |
xmlBool(boolean b)
Returns the given boolean as a Telosys XML boolean value |
static java.lang.String |
xmlDate(java.util.Date date)
Returns the given date as a Telosys XML date value ( in ISO format ) |
static java.lang.String |
xmlString(java.lang.String sStdString)
Converts a "Standard String" to an "Xml String" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String xmlString(java.lang.String sStdString)
sStdString
- :
public static java.lang.String xmlDate(java.util.Date date)
date
-
public static java.lang.String xmlBool(boolean b)
b
-
public static org.w3c.dom.Document loadFile(java.lang.String sFileName)
sFileName
- : the XML file to load
public static org.w3c.dom.Document parse(java.lang.String sFileName) throws TelosysException
sFileName
-
TelosysException
public static org.w3c.dom.Document parse(java.io.File file) throws TelosysException
file
-
TelosysException
public static org.w3c.dom.Document parse(java.io.InputStream is) throws TelosysException
is
-
TelosysException