|
Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager 11g (11.1.1) E10689-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.wsm.xml.XMLUtils
public class XMLUtils
Constructor Summary | |
---|---|
XMLUtils() |
Method Summary | |
---|---|
static void |
addNamespace(Document doc, QName qname) |
static void |
addNamespace(Element elem, QName qname) |
static Document |
cloneDocument(Document doc) Clone document in a thread-safe manner. |
static URL |
createURL(String fileName) |
static Document |
getDocFromInputSource(InputSource source, boolean useXDK) |
static Document |
getDocFromInputStream(InputStream input, boolean useXDK) |
static Document |
getDocFromReader(Reader reader, boolean useXDK) |
static Document |
getEmptyDocument() |
static String |
getText(Element elem) |
static QName |
parseElement(Element element) |
static Document |
parseXMLDocument(InputStream in) |
static Document |
parseXMLDocument(String url) |
static Document |
parseXMLDocument(URL url) |
static void |
setText(Element elem, String text) |
static void |
write(Node element, boolean xmlDeclRequired, OutputStream out) Convert an element to String. |
static void |
write(Node element, boolean xmlDeclRequired, Writer pw) Convert an element to String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLUtils()
Method Detail |
---|
public static URL createURL(String fileName)
public static Document parseXMLDocument(String url)
public static Document parseXMLDocument(URL url)
public static Document parseXMLDocument(InputStream in)
public static Document getEmptyDocument()
public static void write(Node element, boolean xmlDeclRequired, Writer pw) throws XMLException
node
- element or document to be converted to String, cannot be null.XMLException
- if there are parse errors.public static void write(Node element, boolean xmlDeclRequired, OutputStream out) throws XMLException
node
- element or document to be converted to String, cannot be null.XMLException
- if there are parse errors.public static String getText(Element elem)
public static void setText(Element elem, String text)
public static void addNamespace(Element elem, QName qname)
public static void addNamespace(Document doc, QName qname)
public static Document cloneDocument(Document doc) throws XMLException, UnsupportedEncodingException
doc
- document to cloneXMLException
- if an error occurred while parsing the input documentUnsupportedEncodingException
- if an error occurred while creating the clonepublic static QName parseElement(Element element)
public static Document getDocFromInputStream(InputStream input, boolean useXDK) throws PolicyParseFailedException
PolicyParseFailedException
public static Document getDocFromInputSource(InputSource source, boolean useXDK) throws PolicyParseFailedException
PolicyParseFailedException
public static Document getDocFromReader(Reader reader, boolean useXDK) throws PolicyParseFailedException
PolicyParseFailedException
|
Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager 11g (11.1.1) E10689-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |