|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.xaj.core.DOMXmlResource
public class DOMXmlResource
A DOM Document based XmlResource implementation.
Note that the getAsStream() method uses a
PipedInputStream connected to a PipedOutputStream
that generates the stream in a newly created thread. In addition
the getAsString() method internally calls the
getAsStream() method.
| Constructor Summary | |
|---|---|
DOMXmlResource(org.w3c.dom.Node node,
java.io.Serializable id)
Construct from a DOM Node and ID. |
|
| Method Summary | |
|---|---|
void |
free()
Free up any resources associated with this XmlResource. |
javax.xml.transform.Source |
getAsSource()
Get the content of this XML resource as an XSLT Source, for use in a transformation. |
java.io.InputStream |
getAsStream()
Get the content of this XML resource as an input stream |
java.lang.String |
getAsString()
Get the content of this XML resource as a String. |
java.io.Serializable |
getId()
Get the unique ID that identifies this XML resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOMXmlResource(org.w3c.dom.Node node,
java.io.Serializable id)
node - a DOM nodeid - the ID| Method Detail |
|---|
public void free()
XmlResourceAfter calling this method the XmlResource instance should not be used anymore.
free in interface XmlResourcepublic javax.xml.transform.Source getAsSource()
XmlResource
getAsSource in interface XmlResourcepublic java.io.InputStream getAsStream()
XmlResource
getAsStream in interface XmlResourcepublic java.lang.String getAsString()
XmlResource
getAsString in interface XmlResourcepublic java.io.Serializable getId()
XmlResourceThis is the "primary key" for the XML resource. Note that this will only be available for complete XML documents, not necessarily for results returned by XQuery evaluation since that might return arbitrary nodes.
getId in interface XmlResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||