|
|
virtual | ~DOMLSInput () |
| Destructor. More...
|
|
|
virtual const XMLCh * | getStringData () const =0 |
| String data to parse. More...
|
|
virtual InputSource * | getByteStream () const =0 |
| Returns the byte stream for this input source. More...
|
|
virtual const XMLCh * | getEncoding () const =0 |
| An input source can be set to force the parser to assume a particular encoding for the data that input source reprsents, via the setEncoding() method. More...
|
|
virtual const XMLCh * | getPublicId () const =0 |
| Get the public identifier for this input source. More...
|
|
virtual const XMLCh * | getSystemId () const =0 |
| Get the system identifier for this input source. More...
|
|
virtual const XMLCh * | getBaseURI () const =0 |
| Get the base URI to be used for resolving relative URIs to absolute URIs. More...
|
|
virtual void | setStringData (const XMLCh *data)=0 |
| Sets the UTF-16 string for this input source. More...
|
|
virtual void | setByteStream (InputSource *stream)=0 |
| Sets the byte stream for this input source. More...
|
|
virtual void | setEncoding (const XMLCh *const encodingStr)=0 |
| Set the encoding which will be required for use with the XML text read via a stream opened by this input source. More...
|
|
virtual void | setPublicId (const XMLCh *const publicId)=0 |
| Set the public identifier for this input source. More...
|
|
virtual void | setSystemId (const XMLCh *const systemId)=0 |
| Set the system identifier for this input source. More...
|
|
virtual void | setBaseURI (const XMLCh *const baseURI)=0 |
| Set the base URI to be used for resolving relative URIs to absolute URIs. More...
|
|
|
virtual void | setIssueFatalErrorIfNotFound (bool flag)=0 |
| Indicates if the parser should issue fatal error if this input source is not found. More...
|
|
virtual bool | getIssueFatalErrorIfNotFound () const =0 |
| Get the flag that indicates if the parser should issue fatal error if this input source is not found. More...
|
|
virtual void | release ()=0 |
| Called to indicate that this DOMLSInput is no longer in use and that the implementation may relinquish any resources associated with it. More...
|
|
This interface represents a single input source for an XML entity.
This interface allows an application to encapsulate information about an input source in a single object, which may include a public identifier, a system identifier, a byte stream (possibly with a specified encoding), and/or a character stream.
There are two places that the application will deliver this input source to the parser: as the argument to the parse method, or as the return value of the DOMLSResourceResolver.resolveResource method.
The DOMLSParser will use the DOMLSInput 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.
A DOMLSInput object belongs to the application: the parser shall never modify it in any way (it may modify a copy if necessary).
- See Also
- DOMLSParser::parse
-
DOMLSResourceResolver::resolveResource
- Since
- DOM Level 3
virtual void xercesc::DOMLSInput::setEncoding |
( |
const XMLCh *const |
encodingStr | ) |
|
|
pure virtual |
Set the encoding which will be required for use with the XML text read via a stream opened by this input source.
This is usually not set, allowing the encoding to be sensed in the usual XML way. However, in some cases, the encoding in the file is known to be incorrect because of intermediate transcoding, for instance encapsulation within a MIME document.
- Parameters
-
encodingStr | The name of the encoding to force. |
- Since
- DOM Level 3