Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.util

public final Class SAXInputSource

extends XMLInputSource
Class Inheritance
Imports
java.io.InputStream, .Reader, com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource, org.xml.sax.InputSource, .XMLReader

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

Field Summary

Modifier and TypeField and Description
private InputSource
private XMLReader
Inherited from com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource:
fBaseSystemIdfByteStreamfCharStreamfEncodingfPublicIdfSystemId

Constructor Summary

AccessConstructor and Description
public
public
public
SAXInputSource(XMLReader reader, InputSource inputSource)

Method Summary

Modifier and TypeMethod and Description
public InputSource
public XMLReader
public void
setByteStream(InputStream
The new byte stream.
byteStream
)

Overrides com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource.setByteStream.

Sets the byte stream.

public void
setCharacterStream(Reader
The new character stream.
charStream
)

Overrides com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource.setCharacterStream.

Sets the character stream.

public void
setEncoding(String
The new encoding.
encoding
)

Overrides com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource.setEncoding.

Sets the encoding of the stream.

public void
public void
setPublicId(String
The new public identifier.
publicId
)

Overrides com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource.setPublicId.

Sets the public identifier.

public void
setSystemId(String
The new system identifier.
systemId
)

Overrides com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource.setSystemId.

Sets the system identifier.

public void
Inherited from com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource:
getBaseSystemIdgetByteStreamgetCharacterStreamgetEncodinggetPublicIdgetSystemIdisCreatedByResolversetBaseSystemIdsetCreatedByResolver

Field Detail

fInputSourceback to summary
private InputSource fInputSource
fXMLReaderback to summary
private XMLReader fXMLReader

Constructor Detail

SAXInputSourceback to summary
public SAXInputSource()
SAXInputSourceback to summary
public SAXInputSource(InputSource inputSource)
SAXInputSourceback to summary
public SAXInputSource(XMLReader reader, InputSource inputSource)

Method Detail

getInputSourceback to summary
public InputSource getInputSource()
getXMLReaderback to summary
public XMLReader getXMLReader()
setByteStreamback to summary
public void setByteStream(InputStream byteStream)

Overrides com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource.setByteStream.

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:InputStream

The new byte stream.

setCharacterStreamback to summary
public void setCharacterStream(Reader charStream)

Overrides com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource.setCharacterStream.

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:Reader

The new character stream.

See Also
setEncoding
setEncodingback to summary
public void setEncoding(String encoding)

Overrides com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource.setEncoding.

Sets the encoding of the stream.

Parameters
encoding:String

The new encoding.

setInputSourceback to summary
public void setInputSource(InputSource inputSource)
setPublicIdback to summary
public void setPublicId(String publicId)

Overrides com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource.setPublicId.

Sets the public identifier.

Parameters
publicId:String

The new public identifier.

setSystemIdback to summary
public void setSystemId(String systemId)

Overrides com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource.setSystemId.

Sets the system identifier.

Parameters
systemId:String

The new system identifier.

setXMLReaderback to summary
public void setXMLReader(XMLReader reader)