#include <qgarlib/sax/InputSource.H>
This class allows a SAX application to encapsulate information about an input source in a single object, which may include a public identifier, a system identifier, and/or a byte stream.
This class is an adaptation for C++ of the interface of the same name implemented in the Java SAX API (http://www.saxproject.org).
Definition at line 69 of file InputSource.H.
Public Member Functions | |
Constructors | |
| InputSource () | |
| Default constructor. | |
| InputSource (std::istream &byteStream) | |
| Create a new input source from an input stream. | |
| InputSource (const std::string &systemId) | |
| Create a new input source with a system identifier. | |
| InputSource (const InputSource &rhs) | |
| Copy-constructor. | |
Destructor | |
| virtual | ~InputSource () |
| Destructor. | |
Access | |
| virtual std::istream * | getByteStream () |
| Get the byte stream for this input source. | |
| virtual std::string | getEncoding () |
| Get the character encoding for a byte stream or URI. | |
| virtual std::string | getPublicId () |
| Get the public identifier for this input source. | |
| virtual std::string | getSystemId () |
| Get the system identifier for this input source. | |
Transformation | |
| virtual void | setByteStream (std::istream &byteStream) |
| Set the byte stream for this input source. | |
| virtual void | setEncoding (const std::string &encoding) |
| Set the character encoding, if known. | |
| virtual void | setPublicId (const std::string &publicId) |
| Set the public identifier for this input source. | |
| virtual void | setSystemId (const std::string &systemId) |
| Set the system identifier for this input source. | |
Operators | |
| InputSource & | operator= (const InputSource &rhs) |
| Assignment operator. | |
Protected Attributes | |
| std::istream * | _byteStream |
| The input stream the input source gets its data from. | |
| std::string | _systemId |
| The system ID of this input source, empty if unknown. | |
| std::string | _publicId |
| The public TD of this input source, empty if unknown. | |
| std::string | _encoding |
| The encoding of this input source, empty if unknown. | |
|
|
Default constructor.
Definition at line 85 of file InputSource.H. |
|
|
Create a new input source from an input stream.
Definition at line 94 of file InputSource.H. |
|
|
Create a new input source with a system identifier.
Definition at line 104 of file InputSource.H. |
|
|
Copy-constructor.
Definition at line 112 of file InputSource.H. |
|
|
Destructor.
Definition at line 129 of file InputSource.H. |
|
|
Get the byte stream for this input source.
Definition at line 144 of file InputSource.H. References _byteStream. Referenced by qgxml::XercesQgarInputSourceAdaptor::makeStream(). |
|
|
Get the character encoding for a byte stream or URI.
Definition at line 153 of file InputSource.H. References _encoding. |
|
|
Get the public identifier for this input source.
Definition at line 161 of file InputSource.H. References _publicId. |
|
|
Get the system identifier for this input source.
Definition at line 170 of file InputSource.H. References _systemId. |
|
|
Assignment operator.
Definition at line 223 of file InputSource.H. References _byteStream, _encoding, _publicId, and _systemId. |
|
|
Set the byte stream for this input source.
Definition at line 187 of file InputSource.H. References _byteStream. |
|
|
Set the character encoding, if known.
Definition at line 195 of file InputSource.H. References _encoding. |
|
|
Set the public identifier for this input source.
Definition at line 203 of file InputSource.H. References _publicId. |
|
|
Set the system identifier for this input source.
Definition at line 211 of file InputSource.H. References _systemId. |
|
|
The input stream the input source gets its data from.
Definition at line 244 of file InputSource.H. Referenced by getByteStream(), operator=(), and setByteStream(). |
|
|
The encoding of this input source, empty if unknown.
Definition at line 253 of file InputSource.H. Referenced by getEncoding(), operator=(), and setEncoding(). |
|
|
The public TD of this input source, empty if unknown.
Definition at line 250 of file InputSource.H. Referenced by getPublicId(), operator=(), and setPublicId(). |
|
|
The system ID of this input source, empty if unknown.
Definition at line 247 of file InputSource.H. Referenced by getSystemId(), operator=(), and setSystemId(). |