|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsampler.DOMUtils
public class DOMUtils
A collection of utility methods for DOM.
| Method Summary | |
|---|---|
static org.w3c.dom.Document |
createEmptyDocument()
Creates an empty document. |
static org.w3c.dom.Document |
readObject(java.io.InputStream in)
Parses the input from the specified input stream and returns a new document providing the content read from the stream. |
static void |
validateTextContent(org.w3c.dom.Node node)
Validates a text node. |
static void |
writeObject(org.w3c.dom.Document doc,
java.io.OutputStream out)
Writes the content of document doc to the specified output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static org.w3c.dom.Document createEmptyDocument()
java.lang.RuntimeException - if the creation failed.public static org.w3c.dom.Document readObject(java.io.InputStream in)
in - Provides the content to be parsed.
java.lang.RuntimeException - if the parsing failed.
public static void writeObject(org.w3c.dom.Document doc,
java.io.OutputStream out)
doc to the specified output stream.
doc - The document to be written.out - The output stream where the document should be written.
java.lang.RuntimeException - if the operation failed.
public static void validateTextContent(org.w3c.dom.Node node)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - If the node is not a text node.
|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||