|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nonesole.swing.plaf.basic.xmlparser.W3CXml
public class W3CXml
Constructor Summary | |
---|---|
W3CXml()
|
Method Summary | |
---|---|
static org.w3c.dom.Document |
createDocument()
Create DOM Document |
static javax.xml.parsers.DocumentBuilder |
createDocumentBuilder()
Create DocumentBuilder |
static java.util.List<org.w3c.dom.Node> |
getNodes(org.w3c.dom.Node node,
java.lang.String nodeName)
Get child nodes |
static java.lang.String |
getNodes(org.w3c.dom.Node node,
java.lang.String nodeName,
int position,
java.lang.String itemName)
Get nodes. |
static org.w3c.dom.Node |
getRoot(org.w3c.dom.Document doc)
Get root |
static org.w3c.dom.Document |
loadFile(java.lang.String filePath)
Load file |
static org.w3c.dom.Document |
loadFile(java.net.URL url)
Load file |
static byte[] |
parseToStream(org.w3c.dom.Document doc)
Document to byte[]. |
static org.w3c.dom.Document |
parseXmlDocument(byte[] xml)
Parser byte[]. |
static org.w3c.dom.Document |
parseXmlDocument(java.lang.StringBuffer xmlString)
Parser StringBuffer. |
static void |
saveFile(org.w3c.dom.Document doc,
java.lang.String filePath)
Save file |
static java.lang.String |
xmlDocumentToString(org.w3c.dom.Document doc)
Document to String. |
static java.lang.StringBuffer |
xmlDocumentToStringBuffer(org.w3c.dom.Document doc)
Document to StringBuffer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public W3CXml()
Method Detail |
---|
public static javax.xml.parsers.DocumentBuilder createDocumentBuilder() throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.Document parseXmlDocument(java.lang.StringBuffer xmlString) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
StringBuffer
- xmlString
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
public static org.w3c.dom.Document parseXmlDocument(byte[] xml) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
byte[]
- xml
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
public static org.w3c.dom.Document createDocument() throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
public static java.lang.String xmlDocumentToString(org.w3c.dom.Document doc)
Document
- doc
public static java.lang.StringBuffer xmlDocumentToStringBuffer(org.w3c.dom.Document doc)
Document
- doc
public static byte[] parseToStream(org.w3c.dom.Document doc)
Document
- doc
public static org.w3c.dom.Document loadFile(java.lang.String filePath) throws java.lang.Exception
String
- filePath
java.lang.Exception
public static org.w3c.dom.Document loadFile(java.net.URL url) throws java.lang.Exception
URL
- url
java.lang.Exception
public static final void saveFile(org.w3c.dom.Document doc, java.lang.String filePath) throws javax.xml.transform.TransformerException
Doucument
- docString
- filePath
javax.xml.transform.TransformerException
public static org.w3c.dom.Node getRoot(org.w3c.dom.Document doc)
Document
- doc
public static java.util.List<org.w3c.dom.Node> getNodes(org.w3c.dom.Node node, java.lang.String nodeName)
Node
- nodeString
- nodeName
public static java.lang.String getNodes(org.w3c.dom.Node node, java.lang.String nodeName, int position, java.lang.String itemName)
Node
- nodeString
- nodeNameint
- positionString
- itemName
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |