XQuilla/docs/simple-api/classxercesc_1_1InputSource.html

707 lines
38 KiB
HTML
Raw Normal View History

2020-02-17 21:05:20 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>XQilla Simple API: xercesc::InputSource Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<div class="nav">
<a class="el" href="namespacexercesc.html">xercesc</a>::<a class="el" href="classxercesc_1_1InputSource.html">InputSource</a></div>
<h1>xercesc::InputSource Class Reference</h1><!-- doxytag: class="xercesc::InputSource" --><!-- doxytag: inherits="xercesc::XMemory" -->A single input source for an XML entity.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="InputSource_8hpp-source.html">InputSource.hpp</a>&gt;</code>
<p>
Inheritance diagram for xercesc::InputSource:<p><center><img src="classxercesc_1_1InputSource__inherit__graph.png" border="0" usemap="#xercesc_1_1InputSource__inherit__map" alt="Inheritance graph"></center>
<map name="xercesc_1_1InputSource__inherit__map">
<area href="classxercesc_1_1LocalFileInputSource.html" shape="rect" coords="8,158,208,182" alt="">
<area href="classxercesc_1_1MemBufInputSource.html" shape="rect" coords="232,158,429,182" alt="">
<area href="classxercesc_1_1StdInInputSource.html" shape="rect" coords="453,158,632,182" alt="">
<area href="classxercesc_1_1URLInputSource.html" shape="rect" coords="656,158,832,182" alt="">
<area href="classxercesc_1_1XMemory.html" shape="rect" coords="369,9,502,33" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classxercesc_1_1InputSource-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#4b9113b51e0d93bc9ec310061aa6f834">~InputSource</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <a href="#4b9113b51e0d93bc9ec310061aa6f834"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Virtual input source interface</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual BinInputStream *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#9d3101df0ae8a72045f81a7028bc36d8">makeStream</a> () const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Makes the byte stream for this input source. <a href="#9d3101df0ae8a72045f81a7028bc36d8"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Getter methods</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const XMLCh *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#6f150d285d4ce368ce7a6f94f65f2957">getEncoding</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">An input source can be set to force the parser to assume a particular encoding for the data that input source reprsents, via the <a class="el" href="classxercesc_1_1InputSource.html#38edffa85c69a79705506dc674f370ca">setEncoding()</a> method. <a href="#6f150d285d4ce368ce7a6f94f65f2957"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const XMLCh *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#192a9028168663eb4fb1e905e41837d8">getPublicId</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the public identifier for this input source. <a href="#192a9028168663eb4fb1e905e41837d8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const XMLCh *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#95ae54667532f3cbc9ec4a734541d0f5">getSystemId</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the system identifier for this input source. <a href="#95ae54667532f3cbc9ec4a734541d0f5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#3184b9e26e147b88d0eae9b09f39910d">getIssueFatalErrorIfNotFound</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the flag that indicates if the parser should issue fatal error if this input source is not found. <a href="#3184b9e26e147b88d0eae9b09f39910d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#af614d39640bc2a92e89dcfd28ec7109">getMemoryManager</a> () const </td></tr>
<tr><td colspan="2"><div class="groupHeader">Setter methods</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#38edffa85c69a79705506dc674f370ca">setEncoding</a> (const XMLCh *const encodingStr)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the encoding which will be required for use with the XML text read via a stream opened by this input source. <a href="#38edffa85c69a79705506dc674f370ca"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#d88b92735d82dcadf39496ca83357aec">setPublicId</a> (const XMLCh *const publicId)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the public identifier for this input source. <a href="#d88b92735d82dcadf39496ca83357aec"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#3542f513fd873dd217ce1972b041182b">setSystemId</a> (const XMLCh *const systemId)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the system identifier for this input source. <a href="#3542f513fd873dd217ce1972b041182b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#30493e827beb6798632d40f81be064c7">setIssueFatalErrorIfNotFound</a> (const bool flag)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indicates if the parser should issue fatal error if this input source is not found. <a href="#30493e827beb6798632d40f81be064c7"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Constructors and Destructor</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#a8a03426e60c7fea417ca87fe92cdbfe">InputSource</a> (<a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <a href="#a8a03426e60c7fea417ca87fe92cdbfe"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#4a73a8e57de0eb17e5f5c53cb838dce6">InputSource</a> (const XMLCh *const systemId, <a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor with a system identifier as XMLCh type. <a href="#4a73a8e57de0eb17e5f5c53cb838dce6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#d7b79c573ccaa32680e6d7cbc0cc644c">InputSource</a> (const XMLCh *const systemId, const XMLCh *const publicId, <a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor with a system and public identifiers. <a href="#d7b79c573ccaa32680e6d7cbc0cc644c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#d16637d2929e9e193061186c994f7308">InputSource</a> (const char *const systemId, <a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor witha system identifier as string. <a href="#d16637d2929e9e193061186c994f7308"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1InputSource.html#619e49d0a44dffdba3e30566754ef99e">InputSource</a> (const char *const systemId, const char *const publicId, <a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor witha system and public identifiers. <a href="#619e49d0a44dffdba3e30566754ef99e"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A single input source for an XML entity.
<p>
This class encapsulates information about an input source in a single object, which may include a public identifier or a system identifier<p>
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.<p>
<a class="el" href="classxercesc_1_1InputSource.html">InputSource</a> is never used directly, but is the base class for a number of derived classes for particular types of input sources. Derivatives are provided (in the framework/ directory) for URL input sources, memory buffer input sources, and so on.<p>
When it is time to parse the input described by an input source, it will be asked to create a binary stream for that source. That stream will be used to input the data of the source. The derived class provides the implementation of the <a class="el" href="classxercesc_1_1InputSource.html#9d3101df0ae8a72045f81a7028bc36d8">makeStream()</a> method, and provides a type of stream of the correct type for the input source it represents.<p>
An <a class="el" href="classxercesc_1_1InputSource.html">InputSource</a> object belongs to the application: the parser never modifies them in any way. They are always passed by const reference so the parser will make a copy of any input sources that it must keep around beyond the call.<p>
<dl compact><dt><b>See also:</b></dt><dd>Parser::parse <p>
EntityResolver::resolveEntity </dd></dl>
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="4b9113b51e0d93bc9ec310061aa6f834"></a><!-- doxytag: member="xercesc::InputSource::~InputSource" ref="4b9113b51e0d93bc9ec310061aa6f834" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual xercesc::InputSource::~InputSource </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Destructor.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a8a03426e60c7fea417ca87fe92cdbfe"></a><!-- doxytag: member="xercesc::InputSource::InputSource" ref="a8a03426e60c7fea417ca87fe92cdbfe" args="(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">xercesc::InputSource::InputSource </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *const &nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>manager</em> = <code><a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">XMLPlatformUtils::fgMemoryManager</a></code> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Default constructor.
<p>
</td>
</tr>
</table>
<a class="anchor" name="4a73a8e57de0eb17e5f5c53cb838dce6"></a><!-- doxytag: member="xercesc::InputSource::InputSource" ref="4a73a8e57de0eb17e5f5c53cb838dce6" args="(const XMLCh *const systemId, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">xercesc::InputSource::InputSource </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const XMLCh *const &nbsp;</td>
<td class="mdname" nowrap> <em>systemId</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *const &nbsp;</td>
<td class="mdname" nowrap> <em>manager</em> = <code><a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">XMLPlatformUtils::fgMemoryManager</a></code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Constructor with a system identifier as XMLCh type.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>systemId</em>&nbsp;</td><td>The system identifier (URI). </td></tr>
<tr><td valign="top"></td><td valign="top"><em>manager</em>&nbsp;</td><td>Pointer to the memory manager to be used to allocate objects. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="d7b79c573ccaa32680e6d7cbc0cc644c"></a><!-- doxytag: member="xercesc::InputSource::InputSource" ref="d7b79c573ccaa32680e6d7cbc0cc644c" args="(const XMLCh *const systemId, const XMLCh *const publicId, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">xercesc::InputSource::InputSource </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const XMLCh *const &nbsp;</td>
<td class="mdname" nowrap> <em>systemId</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const XMLCh *const &nbsp;</td>
<td class="mdname" nowrap> <em>publicId</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *const &nbsp;</td>
<td class="mdname" nowrap> <em>manager</em> = <code><a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">XMLPlatformUtils::fgMemoryManager</a></code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Constructor with a system and public identifiers.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>systemId</em>&nbsp;</td><td>The system identifier (URI). </td></tr>
<tr><td valign="top"></td><td valign="top"><em>publicId</em>&nbsp;</td><td>The public identifier as in the entity definition. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>manager</em>&nbsp;</td><td>Pointer to the memory manager to be used to allocate objects. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="d16637d2929e9e193061186c994f7308"></a><!-- doxytag: member="xercesc::InputSource::InputSource" ref="d16637d2929e9e193061186c994f7308" args="(const char *const systemId, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">xercesc::InputSource::InputSource </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const char *const &nbsp;</td>
<td class="mdname" nowrap> <em>systemId</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *const &nbsp;</td>
<td class="mdname" nowrap> <em>manager</em> = <code><a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">XMLPlatformUtils::fgMemoryManager</a></code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Constructor witha system identifier as string.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>systemId</em>&nbsp;</td><td>The system identifier (URI). </td></tr>
<tr><td valign="top"></td><td valign="top"><em>manager</em>&nbsp;</td><td>Pointer to the memory manager to be used to allocate objects. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="619e49d0a44dffdba3e30566754ef99e"></a><!-- doxytag: member="xercesc::InputSource::InputSource" ref="619e49d0a44dffdba3e30566754ef99e" args="(const char *const systemId, const char *const publicId, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">xercesc::InputSource::InputSource </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const char *const &nbsp;</td>
<td class="mdname" nowrap> <em>systemId</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const char *const &nbsp;</td>
<td class="mdname" nowrap> <em>publicId</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *const &nbsp;</td>
<td class="mdname" nowrap> <em>manager</em> = <code><a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">XMLPlatformUtils::fgMemoryManager</a></code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Constructor witha system and public identifiers.
<p>
Both as string <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>systemId</em>&nbsp;</td><td>The system identifier (URI). </td></tr>
<tr><td valign="top"></td><td valign="top"><em>publicId</em>&nbsp;</td><td>The public identifier as in the entity definition. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>manager</em>&nbsp;</td><td>Pointer to the memory manager to be used to allocate objects. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="6f150d285d4ce368ce7a6f94f65f2957"></a><!-- doxytag: member="xercesc::InputSource::getEncoding" ref="6f150d285d4ce368ce7a6f94f65f2957" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">const XMLCh * xercesc::InputSource::getEncoding </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
An input source can be set to force the parser to assume a particular encoding for the data that input source reprsents, via the <a class="el" href="classxercesc_1_1InputSource.html#38edffa85c69a79705506dc674f370ca">setEncoding()</a> method.
<p>
This method returns name of the encoding that is to be forced. If the encoding has never been forced, it returns a null pointer.<p>
<dl compact><dt><b>Returns:</b></dt><dd>The forced encoding, or null if none was supplied. </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classxercesc_1_1InputSource.html#38edffa85c69a79705506dc674f370ca">setEncoding</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="3184b9e26e147b88d0eae9b09f39910d"></a><!-- doxytag: member="xercesc::InputSource::getIssueFatalErrorIfNotFound" ref="3184b9e26e147b88d0eae9b09f39910d" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool xercesc::InputSource::getIssueFatalErrorIfNotFound </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the flag that indicates if the parser should issue fatal error if this input source is not found.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>True if the parser should issue fatal error if this input source is not found. False if the parser issue warning message instead. </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classxercesc_1_1InputSource.html#30493e827beb6798632d40f81be064c7">setIssueFatalErrorIfNotFound</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="af614d39640bc2a92e89dcfd28ec7109"></a><!-- doxytag: member="xercesc::InputSource::getMemoryManager" ref="af614d39640bc2a92e89dcfd28ec7109" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> * xercesc::InputSource::getMemoryManager </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a class="anchor" name="192a9028168663eb4fb1e905e41837d8"></a><!-- doxytag: member="xercesc::InputSource::getPublicId" ref="192a9028168663eb4fb1e905e41837d8" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">const XMLCh * xercesc::InputSource::getPublicId </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the public identifier for this input source.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The public identifier, or null if none was supplied. </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classxercesc_1_1InputSource.html#d88b92735d82dcadf39496ca83357aec">setPublicId</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="95ae54667532f3cbc9ec4a734541d0f5"></a><!-- doxytag: member="xercesc::InputSource::getSystemId" ref="95ae54667532f3cbc9ec4a734541d0f5" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">const XMLCh * xercesc::InputSource::getSystemId </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the system identifier for this input source.
<p>
If the system ID is a URL, it will be fully resolved.<p>
<dl compact><dt><b>Returns:</b></dt><dd>The system identifier. </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classxercesc_1_1InputSource.html#3542f513fd873dd217ce1972b041182b">setSystemId</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="9d3101df0ae8a72045f81a7028bc36d8"></a><!-- doxytag: member="xercesc::InputSource::makeStream" ref="9d3101df0ae8a72045f81a7028bc36d8" args="() const =0" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual BinInputStream* xercesc::InputSource::makeStream </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Makes the byte stream for this input source.
<p>
The derived class must create and return a binary input stream of an appropriate type for its kind of data source. The returned stream must be dynamically allocated and becomes the parser's property. <p>
<dl compact><dt><b>See also:</b></dt><dd>BinInputStream </dd></dl>
<p>
Implemented in <a class="el" href="classxercesc_1_1LocalFileInputSource.html#2e4084fefbfa564f0033d245ea397282">xercesc::LocalFileInputSource</a>, <a class="el" href="classxercesc_1_1MemBufInputSource.html#6763b5370b2b83eb987fa43dc8f31301">xercesc::MemBufInputSource</a>, <a class="el" href="classxercesc_1_1StdInInputSource.html#d4d88d9a43f30916ad316b771a0424a7">xercesc::StdInInputSource</a>, and <a class="el" href="classxercesc_1_1URLInputSource.html#c863b26ca8f95d0a173733235576b211">xercesc::URLInputSource</a>. </td>
</tr>
</table>
<a class="anchor" name="38edffa85c69a79705506dc674f370ca"></a><!-- doxytag: member="xercesc::InputSource::setEncoding" ref="38edffa85c69a79705506dc674f370ca" args="(const XMLCh *const encodingStr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual void xercesc::InputSource::setEncoding </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const XMLCh *const &nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>encodingStr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the encoding which will be required for use with the XML text read via a stream opened by this input source.
<p>
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.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>encodingStr</em>&nbsp;</td><td>The name of the encoding to force. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="30493e827beb6798632d40f81be064c7"></a><!-- doxytag: member="xercesc::InputSource::setIssueFatalErrorIfNotFound" ref="30493e827beb6798632d40f81be064c7" args="(const bool flag)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void xercesc::InputSource::setIssueFatalErrorIfNotFound </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const bool&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>flag</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Indicates if the parser should issue fatal error if this input source is not found.
<p>
If set to false, the parser issue warning message instead.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>flag</em>&nbsp;</td><td>True if the parser should issue fatal error if this input source is not found. If set to false, the parser issue warning message instead. (Default: true)</td></tr>
</table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classxercesc_1_1InputSource.html#3184b9e26e147b88d0eae9b09f39910d">getIssueFatalErrorIfNotFound</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="d88b92735d82dcadf39496ca83357aec"></a><!-- doxytag: member="xercesc::InputSource::setPublicId" ref="d88b92735d82dcadf39496ca83357aec" args="(const XMLCh *const publicId)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual void xercesc::InputSource::setPublicId </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const XMLCh *const &nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>publicId</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the public identifier for this input source.
<p>
The public identifier is always optional: if the application writer includes one, it will be provided as part of the location information.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>publicId</em>&nbsp;</td><td>The public identifier as a string. </td></tr>
</table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd>Locator::getPublicId <p>
SAXParseException::getPublicId <p>
<a class="el" href="classxercesc_1_1InputSource.html#192a9028168663eb4fb1e905e41837d8">getPublicId</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="3542f513fd873dd217ce1972b041182b"></a><!-- doxytag: member="xercesc::InputSource::setSystemId" ref="3542f513fd873dd217ce1972b041182b" args="(const XMLCh *const systemId)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual void xercesc::InputSource::setSystemId </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const XMLCh *const &nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>systemId</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the system identifier for this input source.
<p>
Set the system identifier for this input source.<p>
The system id is always required. The public id may be used to map to another system id, but the system id must always be present as a fall back.<p>
If the system ID is a URL, it must be fully resolved.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>systemId</em>&nbsp;</td><td>The system identifier as a string. </td></tr>
</table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classxercesc_1_1InputSource.html#95ae54667532f3cbc9ec4a734541d0f5">getSystemId</a> <p>
Locator::getSystemId <p>
SAXParseException::getSystemId </dd></dl>
</td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="InputSource_8hpp-source.html">InputSource.hpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Dec 12 00:18:57 2006 for XQilla Simple API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>