Home » xml-commons-external-1.4.01-src » javax » xml » transform » sax » [javadoc | source]
javax.xml.transform.sax
public class: SAXSource [javadoc | source]
java.lang.Object
   javax.xml.transform.sax.SAXSource

All Implemented Interfaces:
    Source

Direct Known Subclasses:
    JAXBSource

Acts as an holder for SAX-style Source.

Note that XSLT requires namespace support. Attempting to transform an input source that is not generated with a namespace-aware parser may result in errors. Parsers can be made namespace aware by calling the javax.xml.parsers.SAXParserFactory#setNamespaceAware(boolean awareness) method.

Field Summary
public static final  String FEATURE    If javax.xml.transform.TransformerFactory#getFeature returns true when passed this value as an argument, the Transformer supports Source input of this type. 
Constructor:
 public SAXSource() 
    Also see:
    javax.xml.transform.Transformer#transform(Source xmlSource, Result outputTarget)
 public SAXSource(InputSource inputSource) 
    Parameters:
    inputSource - An input source reference that must be non-null and that will be passed to the parse method of the reader.
 public SAXSource(XMLReader reader,
    InputSource inputSource) 
    Parameters:
    reader - An XMLReader to be used for the parse.
    inputSource - A SAX input source reference that must be non-null and that will be passed to the reader parse method.
Method from javax.xml.transform.sax.SAXSource Summary:
getInputSource,   getSystemId,   getXMLReader,   setInputSource,   setSystemId,   setXMLReader,   sourceToInputSource
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.xml.transform.sax.SAXSource Detail:
 public InputSource getInputSource() 
    Get the SAX InputSource to be used for the Source.
 public String getSystemId() 

    Get the base ID (URI or system ID) from where URIs will be resolved.

 public XMLReader getXMLReader() 
    Get the XMLReader to be used for the Source.
 public  void setInputSource(InputSource inputSource) 
    Set the SAX InputSource to be used for the Source.
 public  void setSystemId(String systemId) 
    Set the system identifier for this Source. If an input source has already been set, it will set the system ID or that input source, otherwise it will create a new input source.

    The system identifier is optional if there is a byte stream or a character stream, but it is still useful to provide one, since the application can use it to resolve relative URIs and can include it in error messages and warnings (the parser will attempt to open a connection to the URI only if no byte stream or character stream is specified).

 public  void setXMLReader(XMLReader reader) 
    Set the XMLReader to be used for the Source.
 public static InputSource sourceToInputSource(Source source) 
    Attempt to obtain a SAX InputSource object from a Source object.