Class SAXInputSource
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.xni.parser.XMLInputSource
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.util.SAXInputSource
-
public final class SAXInputSource extends XMLInputSource
An
XMLInputSourceanalogue tojavax.xml.transform.sax.SAXSource.- Version:
- $Id$
-
-
Field Summary
-
Fields inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.xni.parser.XMLInputSource
fBaseSystemId, fByteStream, fCharStream, fEncoding, fPublicId, fSystemId
-
-
Constructor Summary
Constructors Constructor Description SAXInputSource()SAXInputSource(InputSource inputSource)SAXInputSource(XMLReader reader, InputSource inputSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)-
Methods inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.xni.parser.XMLInputSource
getBaseSystemId, getByteStream, getCharacterStream, getEncoding, getPublicId, getSystemId, setBaseSystemId
-
-
-
-
Constructor Detail
-
SAXInputSource
public SAXInputSource()
-
SAXInputSource
public SAXInputSource(InputSource inputSource)
-
SAXInputSource
public SAXInputSource(XMLReader reader, InputSource inputSource)
-
-
Method Detail
-
setXMLReader
public void setXMLReader(XMLReader reader)
-
getXMLReader
public XMLReader getXMLReader()
-
setInputSource
public void setInputSource(InputSource inputSource)
-
getInputSource
public InputSource getInputSource()
-
setPublicId
public void setPublicId(String publicId)
Sets the public identifier.- Overrides:
setPublicIdin classXMLInputSource- Parameters:
publicId- The new public identifier.
-
setSystemId
public void setSystemId(String systemId)
Sets the system identifier.- Overrides:
setSystemIdin classXMLInputSource- Parameters:
systemId- The new system identifier.
-
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.- Overrides:
setByteStreamin classXMLInputSource- 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.- Overrides:
setCharacterStreamin classXMLInputSource- Parameters:
charStream- The new character stream.- See Also:
setEncoding(java.lang.String)
-
setEncoding
public void setEncoding(String encoding)
Sets the encoding of the stream.- Overrides:
setEncodingin classXMLInputSource- Parameters:
encoding- The new encoding.
-
-