|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xalan.xslt.XSLTInputSource
Represents an XML source document or XSL stylesheet. Use XSLTInputSource objects to provide input to the XSLTProcessor process() method for a transformation. This class extends the SAX input source to handle DOM nodes as input as well as files, character streams, byte streams and SAX DocumentHandlers.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
XSLTProcessor.process(XSLTInputSource, XSLTInputSource, XSLTResultTarget)
Constructor Summary | |
XSLTInputSource()
Deprecated. Zero-argument default constructor -- Before you can use the new XSLTInputSource object in a transformation, you must define the document source with setSystemId(), setNode(), setInputStream(), or setCharacterStream(). |
|
XSLTInputSource(org.xml.sax.InputSource isource)
Deprecated. Create a new XSLTInputSource source from a SAX input source. |
|
XSLTInputSource(java.io.InputStream byteStream)
Deprecated. Create a new input source with a byte stream -- the equivalent of creating an input source with the zero-argument constructor and setting the new object's ByteStream property. |
|
XSLTInputSource(org.w3c.dom.Node node)
Deprecated. Create a new input source with a DOM Node -- the equivalent of creating an input source with the zero-argument constructor and setting the new object's Node property. |
|
XSLTInputSource(java.io.Reader characterStream)
Deprecated. Create a new input source with a character stream -- the equivalent of creating an input source with the zero-argument constructor and setting the new object's CharacterStream property. |
|
XSLTInputSource(java.lang.String systemId)
Deprecated. Create a new input source with a system identifier (for a URL or file name) -- the equivalent of creating an input source with the zero-argument constructor and setting the new object's SystemId property. |
Method Summary | |
java.io.Reader |
getCharacterStream()
Deprecated. Get the character stream for this input source. |
java.lang.String |
getEncoding()
Deprecated. Get the character encoding for a byte stream or URI. |
java.io.InputStream |
getInputStream()
Deprecated. Get the byte stream that was set with setInputStream. |
org.w3c.dom.Node |
getNode()
Deprecated. Get the DOM Node for this input source. |
javax.xml.transform.Source |
getSourceObject()
Deprecated. Get the Result object associated with this XSLTResultTarget object . |
java.lang.String |
getSystemId()
Deprecated. Get the base ID (URL or system ID) from where URLs will be resolved. |
void |
setCharacterStream(java.io.Reader characterStream)
Deprecated. Set the character stream for this input source. |
void |
setEncoding(java.lang.String encoding)
Deprecated. Set the character encoding, if known. |
void |
setInputStream(java.io.InputStream inputStream)
Deprecated. Set the byte stream to be used as input. |
void |
setNode(org.w3c.dom.Node node)
Deprecated. Set the DOM Node for this input source. |
void |
setSystemId(java.lang.String baseID)
Deprecated. Set the base ID (URL or system ID) from where URLs will be resolved. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public XSLTInputSource()
setSystemId(String)
,
setNode(Node)
,
setInputStream(java.io.InputStream)
,
setCharacterStream(java.io.Reader)
,
setEncoding(String)
public XSLTInputSource(java.lang.String systemId)
systemId
- The system identifier (URI).setSystemId(String)
,
setNode(Node)
,
setInputStream(java.io.InputStream)
,
setEncoding(String)
,
setCharacterStream(java.io.Reader)
public XSLTInputSource(java.io.InputStream byteStream)
byteStream
- The raw byte stream containing the document.setInputStream(java.io.InputStream)
,
setSystemId(String)
,
setNode(Node)
,
setEncoding(String)
,
setCharacterStream(java.io.Reader)
public XSLTInputSource(java.io.Reader characterStream)
The character stream shall not include a byte order mark.
characterStream
- The character stream containing the document.setCharacterStream(java.io.Reader)
,
setInputStream(java.io.InputStream)
,
setSystemId(String)
,
setNode(Node)
,
setEncoding(String)
public XSLTInputSource(org.w3c.dom.Node node)
node
- The DOM Node containing the document.setNode(Node)
,
setCharacterStream(java.io.Reader)
,
setInputStream(java.io.InputStream)
,
setSystemId(String)
,
setEncoding(String)
public XSLTInputSource(org.xml.sax.InputSource isource)
isource
- The SAX input source.setCharacterStream(java.io.Reader)
,
setInputStream(java.io.InputStream)
,
setSystemId(String)
,
setEncoding(String)
,
setNode(Node)
Method Detail |
public void setNode(org.w3c.dom.Node node)
node
- The DOM node containing the
XML document or XSL stylesheet.XSLTInputSource(Node)
,
*,
Reader
public org.w3c.dom.Node getNode()
XSLTInputSource(Node)
,
setNode(Node)
public void setEncoding(java.lang.String encoding)
The encoding must be a string acceptable for an XML encoding declaration (see section 4.3.3 of the XML 1.0 recommendation).
This method has no effect when the application provides a character stream.
encoding
- A string describing the character encoding.setSystemId(java.lang.String)
,
getEncoding()
public java.lang.String getEncoding()
getSystemId()
public void setCharacterStream(java.io.Reader characterStream)
If there is a character stream specified, the SAX parser will ignore any byte stream and will not attempt to open a URI connection to the system identifier.
characterStream
- The character stream containing the
XML document or other entity.Reader
public java.io.Reader getCharacterStream()
public void setSystemId(java.lang.String baseID)
baseID
- Base URL for this.public java.lang.String getSystemId()
public void setInputStream(java.io.InputStream inputStream)
If this Source object is used to process a stylesheet, normally setSystemId should also be called, so that relative URL references can be resolved.
inputStream
- A valid InputStream reference to an XML stream.public java.io.InputStream getInputStream()
public javax.xml.transform.Source getSourceObject()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs70 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |