|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbforms.dom.AbstractDOMFactoryImpl
public abstract class AbstractDOMFactoryImpl
abstract class to hide the implemtation details of the various dom implementations.
Constructor Summary | |
---|---|
AbstractDOMFactoryImpl()
|
Method Summary | |
---|---|
abstract String |
DOM2String(Document doc)
Creates a string representation of the given DOMDocument |
abstract Document |
newDOMDocument()
Creates a new empty DOMDocument |
abstract org.w3c.dom.xpath.XPathEvaluator |
newXPathEvaluator()
returns an new created XPathEvaluator |
abstract Document |
read(InputStream in)
Reads a DOMDocument from given InputStream |
Document |
read(String url)
Reads a DOMDocument from given url |
abstract Document |
String2DOM(String data)
Creates an new DOMDocument from the given string |
void |
write(OutputStream out,
Document doc)
Writes a DOMDocument into an OutputStream |
abstract 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDOMFactoryImpl()
Method Detail |
---|
public abstract String DOM2String(Document doc)
DOM2String
in interface IDOMFactory
doc
- The document to transform
public abstract Document String2DOM(String data)
String2DOM
in interface IDOMFactory
data
- the string to parse
public abstract Document newDOMDocument()
newDOMDocument
in interface IDOMFactory
public abstract Document read(InputStream in)
read
in interface IDOMFactory
in
- The InputStream to read
public Document read(String url)
read
in interface IDOMFactory
url
- the url to read from
public abstract void write(OutputStream out, Element root) throws IOException
write
in interface IDOMFactory
out
- OutputStream to write intoroot
- root element to start writing
IOException
public final void write(OutputStream out, Document doc) throws IOException
write
in interface IDOMFactory
out
- OutputStream to write intodoc
- doc to write
IOException
public final void write(String url, Document doc) throws IOException
write
in interface IDOMFactory
url
- The url to write todoc
- The document to write
IOException
public final void write(String url, Element root) throws IOException
write
in interface IDOMFactory
url
- The url to write toroot
- root element to start writing
IOException
public abstract org.w3c.dom.xpath.XPathEvaluator newXPathEvaluator()
newXPathEvaluator
in interface IDOMFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |