|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sdedit.util.DocUtil
public class DocUtil
| Nested Class Summary | |
|---|---|
static class |
DocUtil.XMLException
An XMLException is thrown when an XML document is not well-formed or not valid. |
| Method Summary | |
|---|---|
static String |
evaluateCDATA(Document document,
String xPath)
|
static Node |
evalXPathAsNode(Document document,
String expression)
|
static NodeList |
evalXPathAsNodeList(Document document,
String expression)
|
static String |
evalXPathAsString(Document document,
String expression)
|
static Document |
newDocument()
Returns an empty Document. |
static Document |
readDocument(InputStream in,
String encoding)
Creates a Document instance from a Reader reading an XML input stream. |
static void |
writeDocument(Document document,
String encoding,
OutputStream out)
Writes the XML representation of a Document object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String evalXPathAsString(Document document,
String expression)
throws DocUtil.XMLException
DocUtil.XMLException
public static String evaluateCDATA(Document document,
String xPath)
throws DocUtil.XMLException
DocUtil.XMLException
public static Node evalXPathAsNode(Document document,
String expression)
throws DocUtil.XMLException
DocUtil.XMLException
public static NodeList evalXPathAsNodeList(Document document,
String expression)
throws DocUtil.XMLException
DocUtil.XMLExceptionpublic static Document newDocument()
public static void writeDocument(Document document,
String encoding,
OutputStream out)
throws IOException,
DocUtil.XMLException
document - the Document instanceencoding - the encoding to be usedout - the output stream to be used
DocUtil.XMLException
IOException
public static Document readDocument(InputStream in,
String encoding)
throws IOException,
DocUtil.XMLException
in - an XML input stream
IOException - if the Reader cannot read
DocUtil.XMLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||