| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.wli.sb.sources.DOMSource
public final class DOMSource
Document Object Model (DOM) Source
A Source whose content comes from a DOM node. The referenced node may be a full-fledgedorg.w3c.dom.Document, but it may
 also be an internal node in a larger document.
 
 The serialization representation is XML text with a particular
 chracter set encoding.  The encoding used can be specified via
 TransformOptions.
| Field Summary | 
|---|
| Fields inherited from interface com.bea.wli.sb.sources.Source | 
|---|
DEFAULT_CHARACTER_SET_ENCODING | 
| Constructor Summary | |
|---|---|
DOMSource(Node node)
Create a new Source from a DOM node.  | 
|
DOMSource(Node node,
          String systemID)
Create a new input source with a DOM node, and with the system ID also passed in as the base URI.  | 
|
| Method Summary | |
|---|---|
static weblogic.xml.domimpl.SaverOptions | 
createSaverOptions(TransformOptions options)
Utility class that creates a set of SaverOptions from a set
 of TransformOptions. | 
 InputStream | 
getInputStream(TransformOptions options)
Returns streaming byte-baseed representation of the Source's content.  | 
 Node | 
getNode()
Get the underlying DOM node for this Source  | 
 String | 
getSystemId()
Get the base ID (URL or system ID)  | 
 void | 
writeTo(OutputStream os,
        TransformOptions options)
Serializes the Source's content to a byte-based stream.  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DOMSource(Node node)
node - The DOM node that will be this Source's content
public DOMSource(Node node,
                 String systemID)
node - The DOM node that will be this Source's contentsystemID - Specifies the base URI associated with node.| Method Detail | 
|---|
public Node getNode()
public String getSystemId()
public InputStream getInputStream(TransformOptions options)
                           throws IOException,
                                  TransformException
Source
getInputStream in interface Sourceoptions - Options used to affect the serialization
IOException
TransformException
public void writeTo(OutputStream os,
                    TransformOptions options)
             throws IOException,
                    TransformException
Source
writeTo in interface Sourceos - the OutputStream to which serialized content will be writtenoptions - TransformOptions used to affect the serialization
IOException
TransformExceptionpublic static weblogic.xml.domimpl.SaverOptions createSaverOptions(TransformOptions options)
SaverOptions from a set
 of TransformOptions.  This method takes into account a
 base-set of default SaverOptions.
options - 
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||