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.XMLInputSourceAn
XMLInputSourceanalogue tojavax.xml.transform.sax.SAXSource.- Version:
- $Id: SAXInputSource.java 447241 2006-09-18 05:12:57Z mrglavas $
-
-
Constructor Summary
Constructors Constructor Description SAXInputSource()SAXInputSource(org.xml.sax.InputSource inputSource)SAXInputSource(org.xml.sax.XMLReader reader, org.xml.sax.InputSource inputSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.InputSourcegetInputSource()org.xml.sax.XMLReadergetXMLReader()voidsetByteStream(java.io.InputStream byteStream)Sets the byte stream.voidsetCharacterStream(java.io.Reader charStream)Sets the character stream.voidsetEncoding(java.lang.String encoding)Sets the encoding of the stream.voidsetInputSource(org.xml.sax.InputSource inputSource)voidsetPublicId(java.lang.String publicId)Sets the public identifier.voidsetSystemId(java.lang.String systemId)Sets the system identifier.voidsetXMLReader(org.xml.sax.XMLReader reader)
-
-
-
Method Detail
-
setXMLReader
public void setXMLReader(org.xml.sax.XMLReader reader)
-
getXMLReader
public org.xml.sax.XMLReader getXMLReader()
-
setInputSource
public void setInputSource(org.xml.sax.InputSource inputSource)
-
getInputSource
public org.xml.sax.InputSource getInputSource()
-
setPublicId
public void setPublicId(java.lang.String publicId)
Sets the public identifier.- Overrides:
setPublicIdin classorg.apache.xerces.xni.parser.XMLInputSource- Parameters:
publicId- The new public identifier.
-
setSystemId
public void setSystemId(java.lang.String systemId)
Sets the system identifier.- Overrides:
setSystemIdin classorg.apache.xerces.xni.parser.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:
setByteStreamin classorg.apache.xerces.xni.parser.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:
setCharacterStreamin classorg.apache.xerces.xni.parser.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:
setEncodingin classorg.apache.xerces.xni.parser.XMLInputSource- Parameters:
encoding- The new encoding.
-
-