org.apache.xerces.util
Class SAXInputSource

java.lang.Object
  extended by org.apache.xerces.xni.parser.XMLInputSource
      extended by org.apache.xerces.util.SAXInputSource

public final class SAXInputSource
extends XMLInputSource

An XMLInputSource analogue to javax.xml.transform.sax.SAXSource.

Version:
$Id: SAXInputSource.java 447241 2006-09-18 05:12:57Z mrglavas $

Constructor Summary
SAXInputSource()
           
SAXInputSource(InputSource inputSource)
           
SAXInputSource(XMLReader reader, InputSource inputSource)
           
 
Method Summary
 InputSource getInputSource()
           
 XMLReader getXMLReader()
           
 void setByteStream(java.io.InputStream byteStream)
          Sets the byte stream.
 void setCharacterStream(java.io.Reader charStream)
          Sets the character stream.
 void setEncoding(java.lang.String encoding)
          Sets the encoding of the stream.
 void setInputSource(InputSource inputSource)
           
 void setPublicId(java.lang.String publicId)
          Sets the public identifier.
 void setSystemId(java.lang.String systemId)
          Sets the system identifier.
 void setXMLReader(XMLReader reader)
           
 
Methods inherited from class org.apache.xerces.xni.parser.XMLInputSource
getBaseSystemId, getByteStream, getCharacterStream, getEncoding, getPublicId, getSystemId, setBaseSystemId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXInputSource

public SAXInputSource()

SAXInputSource

public SAXInputSource(InputSource inputSource)

SAXInputSource

public SAXInputSource(XMLReader reader,
                      InputSource inputSource)
Method Detail

setXMLReader

public void setXMLReader(XMLReader reader)

getXMLReader

public XMLReader getXMLReader()

setInputSource

public void setInputSource(InputSource inputSource)

getInputSource

public InputSource getInputSource()

setPublicId

public void setPublicId(java.lang.String publicId)
Sets the public identifier.

Overrides:
setPublicId in class XMLInputSource
Parameters:
publicId - The new public identifier.

setSystemId

public void setSystemId(java.lang.String systemId)
Sets the system identifier.

Overrides:
setSystemId in class XMLInputSource
Parameters:
systemId - The new system identifier.

setByteStream

public void setByteStream(java.io.InputStream byteStream)
Sets the byte stream. If the byte stream is not already opened when this object is instantiated, then the code that opens the stream should also set the byte stream on this object. Also, if the encoding is auto-detected, then the encoding should also be set on this object.

Overrides:
setByteStream in class XMLInputSource
Parameters:
byteStream - The new byte stream.

setCharacterStream

public void setCharacterStream(java.io.Reader charStream)
Sets the character stream. If the character stream is not already opened when this object is instantiated, then the code that opens the stream should also set the character stream on this object. Also, the encoding of the byte stream used by the reader should also be set on this object, if known.

Overrides:
setCharacterStream in class XMLInputSource
Parameters:
charStream - The new character stream.
See Also:
setEncoding(java.lang.String)

setEncoding

public void setEncoding(java.lang.String encoding)
Sets the encoding of the stream.

Overrides:
setEncoding in class XMLInputSource
Parameters:
encoding - The new encoding.