|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object endrov.util.io.EvXmlUtil
public class EvXmlUtil
Utility functions for XML
Nested Class Summary | |
---|---|
static class |
EvXmlUtil.NoOpEntityResolver
|
Constructor Summary | |
---|---|
EvXmlUtil()
|
Method Summary | |
---|---|
static void |
element2matrix(org.jdom.Element e,
javax.vecmath.Matrix3d v)
|
static void |
element2vector(org.jdom.Element e,
javax.vecmath.Vector3d v)
|
static boolean |
elementsEqual(org.jdom.Element a,
org.jdom.Element b)
Checks if name and attributes equal, not content |
static java.util.List<org.jdom.Element> |
getChildrenE(org.jdom.Element root)
|
static java.util.List<org.jdom.Element> |
getChildrenE(org.jdom.Element root,
java.lang.String name)
|
static void |
matrix2element(org.jdom.Element e,
javax.vecmath.Matrix3d v)
|
static void |
mergeXML(org.jdom.Element to,
org.jdom.Element from)
Merge two XML-documents |
static java.lang.String |
prettyPrint(org.jdom.Element e)
|
static void |
prettyPrint(org.jdom.Element e,
java.lang.StringBuffer b)
|
static org.jdom.Document |
readXML(java.io.File filename)
|
static org.jdom.Document |
readXML(java.io.Reader c)
|
static org.jdom.Element |
stringToXml(java.lang.String s)
|
static void |
vector2element(org.jdom.Element e,
javax.vecmath.Vector3d v)
|
static void |
writeXmlData(org.jdom.Document doc,
java.io.File file)
Write XML-document to disk |
static void |
writeXmlData(org.jdom.Document doc,
java.io.OutputStream os)
Write XML-document to stream |
static java.lang.String |
xmlToString(org.jdom.Document doc)
Write XML-document to disk |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EvXmlUtil()
Method Detail |
---|
public static org.jdom.Document readXML(java.io.File filename) throws java.io.IOException, org.jdom.JDOMException
java.io.IOException
org.jdom.JDOMException
public static org.jdom.Document readXML(java.io.Reader c) throws java.lang.Exception
java.lang.Exception
public static java.util.List<org.jdom.Element> getChildrenE(org.jdom.Element root, java.lang.String name)
public static java.util.List<org.jdom.Element> getChildrenE(org.jdom.Element root)
public static java.lang.String prettyPrint(org.jdom.Element e)
public static void prettyPrint(org.jdom.Element e, java.lang.StringBuffer b)
public static boolean elementsEqual(org.jdom.Element a, org.jdom.Element b)
public static void mergeXML(org.jdom.Element to, org.jdom.Element from)
to
- from
- public static void writeXmlData(org.jdom.Document doc, java.io.File file) throws java.lang.Exception
java.lang.Exception
public static void writeXmlData(org.jdom.Document doc, java.io.OutputStream os) throws java.lang.Exception
java.lang.Exception
public static java.lang.String xmlToString(org.jdom.Document doc) throws java.lang.Exception
java.lang.Exception
public static org.jdom.Element stringToXml(java.lang.String s) throws java.lang.Exception
java.lang.Exception
public static void vector2element(org.jdom.Element e, javax.vecmath.Vector3d v)
public static void element2vector(org.jdom.Element e, javax.vecmath.Vector3d v)
public static void matrix2element(org.jdom.Element e, javax.vecmath.Matrix3d v)
public static void element2matrix(org.jdom.Element e, javax.vecmath.Matrix3d v)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |