org.apache.xerces.util

Class SAXInputSource

public final class SAXInputSource extends XMLInputSource

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

Version: $Id: SAXInputSource.java,v 1.1 2005/05/15 19:54:21 mrglavas Exp $

Constructor Summary
SAXInputSource()
SAXInputSource(InputSource inputSource)
SAXInputSource(XMLReader reader, InputSource inputSource)
Method Summary
InputSourcegetInputSource()
XMLReadergetXMLReader()
voidsetByteStream(InputStream byteStream)
Sets the byte stream.
voidsetCharacterStream(Reader charStream)
Sets the character stream.
voidsetEncoding(String encoding)
Sets the encoding of the stream.
voidsetInputSource(InputSource inputSource)
voidsetPublicId(String publicId)
Sets the public identifier.
voidsetSystemId(String systemId)
Sets the system identifier.
voidsetXMLReader(XMLReader reader)

Constructor Detail

SAXInputSource

public SAXInputSource()

SAXInputSource

public SAXInputSource(InputSource inputSource)

SAXInputSource

public SAXInputSource(XMLReader reader, InputSource inputSource)

Method Detail

getInputSource

public InputSource getInputSource()

getXMLReader

public XMLReader getXMLReader()

setByteStream

public void setByteStream(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.

Parameters: byteStream The new byte stream.

setCharacterStream

public void setCharacterStream(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.

Parameters: charStream The new character stream.

See Also: SAXInputSource

setEncoding

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

Parameters: encoding The new encoding.

setInputSource

public void setInputSource(InputSource inputSource)

setPublicId

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

Parameters: publicId The new public identifier.

setSystemId

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

Parameters: systemId The new system identifier.

setXMLReader

public void setXMLReader(XMLReader reader)
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.