Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.xalan.xslt
Class XSLTInputSource  view XSLTInputSource download XSLTInputSource.java

java.lang.Object
  extended byorg.xml.sax.InputSource
      extended byorg.apache.xalan.xslt.XSLTInputSource
Direct Known Subclasses:
StylesheetSpec

public class XSLTInputSource
extends org.xml.sax.InputSource

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.


Field Summary
private  org.w3c.dom.Node node
           
 
Fields inherited from class org.xml.sax.InputSource
 
Constructor Summary
XSLTInputSource()
          Zero-argument default constructor -- Before you can use the new XSLTInputSource object in a transformation, you must define the document source with setSystemId(), setNode(), setByteStream(), or setCharacterStream().
XSLTInputSource(org.xml.sax.InputSource isource)
          Create a new XSLTInputSource source from a SAX input source.
XSLTInputSource(java.io.InputStream byteStream)
          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)
          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)
          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)
          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
 org.w3c.dom.Node getNode()
          Get the DOM Node for this input source.
 void setNode(org.w3c.dom.Node node)
          Set the DOM Node for this input source.
 
Methods inherited from class org.xml.sax.InputSource
getByteStream, getCharacterStream, getEncoding, getPublicId, getSystemId, setByteStream, setCharacterStream, setEncoding, setPublicId, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

private org.w3c.dom.Node node
Constructor Detail

XSLTInputSource

public XSLTInputSource()
Zero-argument default constructor -- Before you can use the new XSLTInputSource object in a transformation, you must define the document source with setSystemId(), setNode(), setByteStream(), or setCharacterStream().


XSLTInputSource

public XSLTInputSource(java.lang.String systemId)
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. If the system identifier is a URL, it must be fully resolved.


XSLTInputSource

public XSLTInputSource(java.io.InputStream byteStream)
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

public XSLTInputSource(java.io.Reader characterStream)
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.

The character stream shall not include a byte order mark.


XSLTInputSource

public XSLTInputSource(org.w3c.dom.Node node)
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

public XSLTInputSource(org.xml.sax.InputSource isource)
Create a new XSLTInputSource source from a SAX input source. This operation sets the ByteStream, CharacterStream, SystemId, PublicID, and Encoding properties.

Method Detail

setNode

public void setNode(org.w3c.dom.Node node)
Set the DOM Node for this input source.


getNode

public org.w3c.dom.Node getNode()
Get the DOM Node for this input source.