Package org.apache.xerces.util
Class SAXInputSource
java.lang.Object
org.apache.xerces.xni.parser.XMLInputSource
org.apache.xerces.util.SAXInputSource
public final class SAXInputSource
extends org.apache.xerces.xni.parser.XMLInputSource
An XMLInputSource analogue to javax.xml.transform.sax.SAXSource.
- Version:
- $Id: SAXInputSource.java 447241 2006-09-18 05:12:57Z mrglavas $
-
Field Summary
Fields inherited from class org.apache.xerces.xni.parser.XMLInputSource
fBaseSystemId, fByteStream, fCharStream, fEncoding, fPublicId, fSystemId -
Constructor Summary
ConstructorsConstructorDescriptionSAXInputSource(InputSource inputSource) SAXInputSource(XMLReader reader, InputSource inputSource) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetByteStream(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) Methods inherited from class org.apache.xerces.xni.parser.XMLInputSource
getBaseSystemId, getByteStream, getCharacterStream, getEncoding, getPublicId, getSystemId, setBaseSystemId
-
Constructor Details
-
SAXInputSource
public SAXInputSource() -
SAXInputSource
-
SAXInputSource
-
-
Method Details
-
setXMLReader
-
getXMLReader
-
setInputSource
-
getInputSource
-
setPublicId
Sets the public identifier.- Overrides:
setPublicIdin classorg.apache.xerces.xni.parser.XMLInputSource- Parameters:
publicId- The new public identifier.
-
setSystemId
Sets the system identifier.- Overrides:
setSystemIdin classorg.apache.xerces.xni.parser.XMLInputSource- Parameters:
systemId- The new system identifier.
-
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.- Overrides:
setByteStreamin classorg.apache.xerces.xni.parser.XMLInputSource- Parameters:
byteStream- The new byte stream.
-
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.- Overrides:
setCharacterStreamin classorg.apache.xerces.xni.parser.XMLInputSource- Parameters:
charStream- The new character stream.- See Also:
-
setEncoding
Sets the encoding of the stream.- Overrides:
setEncodingin classorg.apache.xerces.xni.parser.XMLInputSource- Parameters:
encoding- The new encoding.
-