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
.
$Id: SAXInputSource.java 320364 2005-05-15 19:54:21Z mrglavas $
getBaseSystemId , getByteStream , getCharacterStream , getEncoding , getPublicId , getSystemId , setBaseSystemId , setByteStream , setCharacterStream , setEncoding , setPublicId , setSystemId |
SAXInputSource
public SAXInputSource()
SAXInputSource
public SAXInputSource(org.xml.sax.InputSource inputSource)
SAXInputSource
public SAXInputSource(org.xml.sax.XMLReader reader,
org.xml.sax.InputSource inputSource)
getInputSource
public org.xml.sax.InputSource getInputSource()
getXMLReader
public org.xml.sax.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.
- setByteStream in interface org.apache.xerces.xni.parser.XMLInputSource
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.
- setCharacterStream in interface org.apache.xerces.xni.parser.XMLInputSource
charStream
- The new character stream.
setEncoding
public void setEncoding(String encoding)
Sets the encoding of the stream.
- setEncoding in interface org.apache.xerces.xni.parser.XMLInputSource
encoding
- The new encoding.
setInputSource
public void setInputSource(org.xml.sax.InputSource inputSource)
setPublicId
public void setPublicId(String publicId)
Sets the public identifier.
- setPublicId in interface org.apache.xerces.xni.parser.XMLInputSource
publicId
- The new public identifier.
setSystemId
public void setSystemId(String systemId)
Sets the system identifier.
- setSystemId in interface org.apache.xerces.xni.parser.XMLInputSource
systemId
- The new system identifier.
setXMLReader
public void setXMLReader(org.xml.sax.XMLReader reader)
Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.