#include <saxIInputSource.idl>
Inheritance diagram for saxIInputSource


Public Methods | |
| wstring | getPublicId () |
| Get the public identifier for this input source. More... | |
| wstring | getSystemId () |
| Get the system identifier for this input source. More... | |
| wstring | getEncoding () |
| Get the character encoding for a byte stream or URI. More... | |
| nsIInputStream | getByteStream () |
| Get the byte stream for this input source. More... | |
This class allows a SAX application to encapsulate information about an input source in a single object, which may include a public identifier or a system identifier
There are two places that the application will deliver this input source to the parser: as the argument to the Parser.parse method, or as the return value of the EntityResolver.resolveEntity method.
The SAX parser will use the InputSource object to determine how to read XML input. If there is a character stream available, the parser will read that stream directly; if not, the parser will use a byte stream, if available; if neither a character stream nor a byte stream is available, the parser will attempt to open a URI connection to the resource identified by the system identifier.
An InputSource object belongs to the application: the SAX parser shall never modify it in any way (it may modify a copy if necessary).
Definition at line 46 of file saxIInputSource.idl.
|
|
Get the byte stream for this input source. The getEncoding method will return the character encoding for this byte stream, or null if unknown. |
|
|
Get the character encoding for a byte stream or URI. The encoding, or null if none was supplied. |
|
|
Get the public identifier for this input source.
|
|
|
Get the system identifier for this input source.
The getEncoding method will return the character encoding of the object pointed to, or null if unknown.
If the system ID is a URL, it will be fully resolved.
|
1.2.1 written by Dimitri van Heesch,
© 1997-2000