|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gridsystems.XmlUtils
public final class XmlUtils
XmlUtils type.
| Method Summary | |
|---|---|
static org.w3c.dom.Document |
createDocument()
Creates a new empty XML document. |
static javax.xml.parsers.DocumentBuilder |
getBuilder()
Gets a document builder instance. |
static org.w3c.dom.Document |
getResourceAsDocument(java.lang.ClassLoader cl,
java.lang.String resName)
Gets a resource as a Document instance. |
static org.w3c.dom.Document |
getResourceAsDocument(java.lang.String resName)
Gets a resource from the current context class-loader as a Document instance. |
static org.w3c.dom.Document |
parse(java.io.File f)
Parses a document from the given source. |
static org.w3c.dom.Document |
parse(org.xml.sax.InputSource src)
Parses a document from the given source. |
static org.w3c.dom.Document |
parse(java.io.InputStream is)
Parses a document from the given source. |
static org.w3c.dom.Document |
parse(java.io.Reader reader)
Parses a document from the given source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static javax.xml.parsers.DocumentBuilder getBuilder()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException - If an error occurs
public static org.w3c.dom.Document createDocument()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException - If the builder cannot be instantiated
public static org.w3c.dom.Document parse(org.xml.sax.InputSource src)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
src - The source to parse
javax.xml.parsers.ParserConfigurationException - If the builder cannot be instantiated
org.xml.sax.SAXException - If a syntax error is found
java.io.IOException - If an error occurs reading the source
public static org.w3c.dom.Document parse(java.io.InputStream is)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
is - The stream to parse
javax.xml.parsers.ParserConfigurationException - If the builder cannot be instantiated
org.xml.sax.SAXException - If a syntax error is found
java.io.IOException - If an error occurs reading the stream
public static org.w3c.dom.Document parse(java.io.File f)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
f - The file to parse
javax.xml.parsers.ParserConfigurationException - If the builder cannot be instantiated
org.xml.sax.SAXException - If a syntax error is found
java.io.IOException - If an error occurs reading the stream
public static org.w3c.dom.Document parse(java.io.Reader reader)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
reader - The reader to parse
javax.xml.parsers.ParserConfigurationException - If the builder cannot be instantiated
org.xml.sax.SAXException - If a syntax error is found
java.io.IOException - If an error occurs reading the stream
public static org.w3c.dom.Document getResourceAsDocument(java.lang.String resName)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
resName - The name of the resource to load
javax.xml.parsers.ParserConfigurationException - If the parser cannot be instantiated
org.xml.sax.SAXException - If a syntax error is found in the parsed XML
java.io.IOException - If an I/O error occurs while reading the resource
public static org.w3c.dom.Document getResourceAsDocument(java.lang.ClassLoader cl,
java.lang.String resName)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
cl - The ClassLoader to useresName - The name of the resource to load
javax.xml.parsers.ParserConfigurationException - If the parser cannot be instantiated
org.xml.sax.SAXException - If a syntax error is found in the parsed XML
java.io.IOException - If an I/O error occurs while reading the resource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||