|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDOMFactory
abstract class to hide the implemtation details of the various dom implementations.
Method Summary | |
---|---|
String |
DOM2String(Document doc)
Creates a string representation of the given DOMDocument |
Document |
newDOMDocument()
Creates a new empty DOMDocument |
org.w3c.dom.xpath.XPathEvaluator |
newXPathEvaluator()
returns an new created XPathEvaluator |
Document |
read(InputStream in)
Reads a DOMDocument from given InputStream |
Document |
read(String url)
Reads a DOMDocument from given url |
Document |
String2DOM(String data)
Creates an new DOMDocument from the given string |
void |
write(OutputStream out,
Document doc)
Writes a DOMDocument into an OutputStream |
void |
write(OutputStream out,
Element root)
Writes a DOMElement into an OutputStream |
void |
write(String url,
Document doc)
Writes an DOMDocument into a file |
void |
write(String url,
Element root)
Writes an DOMElement into a file |
Method Detail |
---|
String DOM2String(Document doc)
doc
- The document to transform
Document String2DOM(String data)
data
- the string to parse
Document newDOMDocument()
Document read(InputStream in)
in
- The InputStream to read
Document read(String url)
url
- the url to read from
void write(OutputStream out, Element root) throws IOException
out
- OutputStream to write intoroot
- root element to start writing
IOException
void write(OutputStream out, Document doc) throws IOException
out
- OutputStream to write intodoc
- doc to write
IOException
void write(String url, Document doc) throws IOException
url
- The url to write todoc
- The document to write
IOException
void write(String url, Element root) throws IOException
url
- The url to write toroot
- root element to start writing
IOException
org.w3c.dom.xpath.XPathEvaluator newXPathEvaluator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |