1 | <HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>InputSource class Reference</TITLE><link href="XercesApi.css" rel="stylesheet" type="text/css"></HEAD><BODY alink="#ff0000" bgcolor="#ffffff" leftmargin="4" link="#0000ff" marginheight="4" marginwidth="4" text="#000000" topmargin="4" vlink="#0000aa"><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" height="60" rowspan="3" valign="top" width="135"><IMG border="0" height="60" hspace="0" src="../resources/logo.gif" vspace="0" width="135"></TD><TD align="left" colspan="4" height="5" valign="top" width="456"><IMG border="0" height="5" hspace="0" src="../resources/line.gif" vspace="0" width="456"></TD><TD align="left" height="60" rowspan="3" valign="top" width="29"><IMG border="0" height="60" hspace="0" src="../resources/right.gif" vspace="0" width="29"></TD></TR><TR><TD align="left" bgcolor="#0086b2" colspan="4" height="35" valign="top" width="456"><IMG alt="" border="0" height="35" hspace="0" src="../graphics/api-header.jpg" vspace="0" width="456"></TD></TR><TR><TD align="left" height="20" valign="top" width="168"><IMG border="0" height="20" hspace="0" src="../resources/bottom.gif" vspace="0" width="168"></TD><TD align="left" height="20" valign="top" width="96"><A href="http://xml.apache.org/" onMouseOut="rolloverOff('xml');" onMouseOver="rolloverOn('xml');" target="new"><IMG alt="http://xml.apache.org/" border="0" height="20" hspace="0" name="xml" onLoad="rolloverLoad('xml','../resources/button-xml-hi.gif','../resources/button-xml-lo.gif');" src="../resources/button-xml-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.apache.org/" onMouseOut="rolloverOff('asf');" onMouseOver="rolloverOn('asf');" target="new"><IMG alt="http://www.apache.org/" border="0" height="20" hspace="0" name="asf" onLoad="rolloverLoad('asf','../resources/button-asf-hi.gif','../resources/button-asf-lo.gif');" src="../resources/button-asf-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.w3.org/" onMouseOut="rolloverOff('w3c');" onMouseOver="rolloverOn('w3c');" target="new"><IMG alt="http://www.w3.org/" border="0" height="20" hspace="0" name="w3c" onLoad="rolloverLoad('w3c','../resources/button-w3c-hi.gif','../resources/button-w3c-lo.gif');" src="../resources/button-w3c-lo.gif" vspace="0" width="96"></A></TD></TR></TABLE><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" valign="top" width="120"><IMG border="0" height="14" hspace="0" src="../resources/join.gif" vspace="0" width="120"><BR>
|
---|
2 | <A href="../../index.html" onMouseOut="rolloverOff('side-ext-2');" onMouseOver="rolloverOn('side-ext-2');"><IMG alt="Home" border="0" height="12" hspace="0" name="side-ext-2" onLoad="rolloverLoad('side-ext-2','../graphics/ext-2-label-2.jpg','../graphics/ext-2-label-3.jpg');" src="../graphics/ext-2-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
3 |
|
---|
4 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
5 |
|
---|
6 | <A href="../index.html" onMouseOut="rolloverOff('side-index');" onMouseOver="rolloverOn('side-index');"><IMG alt="Readme" border="0" height="12" hspace="0" name="side-index" onLoad="rolloverLoad('side-index','../graphics/index-label-2.jpg','../graphics/index-label-3.jpg');" src="../graphics/index-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
7 | <A href="../releases.html" onMouseOut="rolloverOff('side-releases');" onMouseOver="rolloverOn('side-releases');"><IMG alt="Release Info" border="0" height="12" hspace="0" name="side-releases" onLoad="rolloverLoad('side-releases','../graphics/releases-label-2.jpg','../graphics/releases-label-3.jpg');" src="../graphics/releases-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
8 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
9 | <A href="../install.html" onMouseOut="rolloverOff('side-install');" onMouseOver="rolloverOn('side-install');"><IMG alt="Installation" border="0" height="12" hspace="0" name="side-install" onLoad="rolloverLoad('side-install','../graphics/install-label-2.jpg','../graphics/install-label-3.jpg');" src="../graphics/install-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
10 | <A href="http://xml.apache.org/dist/xerces-c/" onMouseOut="rolloverOff('side-ext-18');" onMouseOver="rolloverOn('side-ext-18');"><IMG alt="Download" border="0" height="12" hspace="0" name="side-ext-18" onLoad="rolloverLoad('side-ext-18','../graphics/ext-18-label-2.jpg','../graphics/ext-18-label-3.jpg');" src="../graphics/ext-18-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
11 | <A href="../build.html" onMouseOut="rolloverOff('side-build');" onMouseOver="rolloverOn('side-build');"><IMG alt="Build" border="0" height="12" hspace="0" name="side-build" onLoad="rolloverLoad('side-build','../graphics/build-label-2.jpg','../graphics/build-label-3.jpg');" src="../graphics/build-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
12 |
|
---|
13 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
14 | <A href="../faqs.html" onMouseOut="rolloverOff('side-faqs');" onMouseOver="rolloverOn('side-faqs');"><IMG alt="FAQs" border="0" height="12" hspace="0" name="side-faqs" onLoad="rolloverLoad('side-faqs','../graphics/faqs-label-2.jpg','../graphics/faqs-label-3.jpg');" src="../graphics/faqs-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
15 | <A href="../samples.html" onMouseOut="rolloverOff('side-samples');" onMouseOver="rolloverOn('side-samples');"><IMG alt="Samples" border="0" height="12" hspace="0" name="side-samples" onLoad="rolloverLoad('side-samples','../graphics/samples-label-2.jpg','../graphics/samples-label-3.jpg');" src="../graphics/samples-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
16 | <A href="../api.html" onMouseOut="rolloverOff('side-api');" onMouseOver="rolloverOn('side-api');"><IMG alt="API Docs" border="0" height="12" hspace="0" name="side-api" onLoad="rolloverLoad('side-api','../graphics/api-label-2.jpg','../graphics/api-label-3.jpg');" src="../graphics/api-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
17 |
|
---|
18 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
19 | <A href="../ApacheDOMC++Binding.html" onMouseOut="rolloverOff('side-ext-68');" onMouseOver="rolloverOn('side-ext-68');"><IMG alt="DOM C++ Binding" border="0" height="12" hspace="0" name="side-ext-68" onLoad="rolloverLoad('side-ext-68','../graphics/ext-68-label-2.jpg','../graphics/ext-68-label-3.jpg');" src="../graphics/ext-68-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
20 |
|
---|
21 | <A href="../program.html" onMouseOut="rolloverOff('side-program');" onMouseOver="rolloverOn('side-program');"><IMG alt="Programming" border="0" height="12" hspace="0" name="side-program" onLoad="rolloverLoad('side-program','../graphics/program-label-2.jpg','../graphics/program-label-3.jpg');" src="../graphics/program-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
22 | <A href="../migrate.html" onMouseOut="rolloverOff('side-migrate');" onMouseOver="rolloverOn('side-migrate');"><IMG alt="Migration Guide" border="0" height="12" hspace="0" name="side-migrate" onLoad="rolloverLoad('side-migrate','../graphics/migrate-label-2.jpg','../graphics/migrate-label-3.jpg');" src="../graphics/migrate-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
23 |
|
---|
24 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
25 |
|
---|
26 | <A href="../feedback.html" onMouseOut="rolloverOff('side-feedback');" onMouseOver="rolloverOn('side-feedback');"><IMG alt="Feedback" border="0" height="12" hspace="0" name="side-feedback" onLoad="rolloverLoad('side-feedback','../graphics/feedback-label-2.jpg','../graphics/feedback-label-3.jpg');" src="../graphics/feedback-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
27 | <A href="../bug-report.html" onMouseOut="rolloverOff('side-bug-report');" onMouseOver="rolloverOn('side-bug-report');"><IMG alt="Bug-Reporting" border="0" height="12" hspace="0" name="side-bug-report" onLoad="rolloverLoad('side-bug-report','../graphics/bug-report-label-2.jpg','../graphics/bug-report-label-3.jpg');" src="../graphics/bug-report-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
28 | <A href="../pdf.html" onMouseOut="rolloverOff('side-pdf');" onMouseOver="rolloverOn('side-pdf');"><IMG alt="PDF Document" border="0" height="12" hspace="0" name="side-pdf" onLoad="rolloverLoad('side-pdf','../graphics/pdf-label-2.jpg','../graphics/pdf-label-3.jpg');" src="../graphics/pdf-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
29 |
|
---|
30 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
31 |
|
---|
32 | <A href="http://xml.apache.org/websrc/cvsweb.cgi/xml-xerces/c/" onMouseOut="rolloverOff('side-ext-100');" onMouseOver="rolloverOn('side-ext-100');"><IMG alt="CVS Repository" border="0" height="12" hspace="0" name="side-ext-100" onLoad="rolloverLoad('side-ext-100','../graphics/ext-100-label-2.jpg','../graphics/ext-100-label-3.jpg');" src="../graphics/ext-100-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
33 |
|
---|
34 | <A href="http://marc.theaimsgroup.com/?l=xerces-c-dev" onMouseOut="rolloverOff('side-ext-102');" onMouseOver="rolloverOn('side-ext-102');"><IMG alt="Mail Archive" border="0" height="12" hspace="0" name="side-ext-102" onLoad="rolloverLoad('side-ext-102','../graphics/ext-102-label-2.jpg','../graphics/ext-102-label-3.jpg');" src="../graphics/ext-102-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
35 |
|
---|
36 |
|
---|
37 | <IMG border="0" height="14" hspace="0" src="../resources/close.gif" vspace="0" width="120"><BR></TD><TD align="left" valign="top" width="500"><TABLE border="0" cellpadding="3" cellspacing="0"><TR><TD>
|
---|
38 | <TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#FFFFFF" colspan="2" width="494"><TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#039acc" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#039acc" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#039acc" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#0086b2" width="492"><FONT color="#ffffff" face="arial,helvetica,sanserif" size="+1"><IMG border="0" height="2" hspace="0" src="../resources/void.gif" vspace="0" width="2"><B>API Docs for SAX and DOM</B></FONT></TD><TD bgcolor="#017299" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#017299" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#017299" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></TD></TR><TR><TD width="10"> </TD><TD width="484"><FONT color="#000000" face="arial,helvetica,sanserif">
|
---|
39 |
|
---|
40 | <P>
|
---|
41 | <!-- Generated by Doxygen 1.2.14 -->
|
---|
42 | <center>
|
---|
43 | <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center>
|
---|
44 | <hr><h1>InputSource Class Reference</h1>A single input source for an XML entity.
|
---|
45 | <a href="#_details">More...</a>
|
---|
46 | <p>
|
---|
47 | Inheritance diagram for InputSource:<p><center><img src="classInputSource__inherit__graph.gif" border="0" usemap="#InputSource__inherit__map" alt="Inheritance graph"></center>
|
---|
48 | <map name="InputSource__inherit__map">
|
---|
49 | <area href="classLocalFileInputSource.html" shape="rect" coords="7,174,143,156" alt="">
|
---|
50 | <area href="classMemBufInputSource.html" shape="rect" coords="167,174,300,156" alt="">
|
---|
51 | <area href="classStdInInputSource.html" shape="rect" coords="324,174,439,156" alt="">
|
---|
52 | <area href="classURLInputSource.html" shape="rect" coords="463,174,572,156" alt="">
|
---|
53 | <area href="classWrapper4DOMInputSource.html" shape="rect" coords="596,174,772,156" alt="">
|
---|
54 | <area href="classXMemory.html" shape="rect" coords="347,36,416,17" alt="">
|
---|
55 | </map>
|
---|
56 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for InputSource:<p><center><img src="classInputSource__coll__graph.gif" border="0" usemap="#InputSource__coll__map" alt="Collaboration graph"></center>
|
---|
57 | <map name="InputSource__coll__map">
|
---|
58 | <area href="classXMemory.html" shape="rect" coords="7,36,76,17" alt="">
|
---|
59 | <area href="classMemoryManager.html" shape="rect" coords="100,36,209,17" alt="">
|
---|
60 | </map>
|
---|
61 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classInputSource-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
|
---|
62 | <tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
|
---|
63 | <tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
|
---|
64 | <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classInputSource.html#z433_0">~InputSource</a> ()</td></tr>
|
---|
65 | <tr><td> </td><td><font size=-1><em>Destructor.</em> <a href="#z433_0">More...</a><em></em></font><br><br></td></tr>
|
---|
66 | <tr><td colspan="2"><div class="groupHeader">Virtual input source interface</div></td></tr>
|
---|
67 | <tr><td nowrap align=right valign=top>virtual <a class="el" href="classBinInputStream.html">BinInputStream</a> * </td><td valign=bottom><a class="el" href="classInputSource.html#z434_0">makeStream</a> () const=0</td></tr>
|
---|
68 | <tr><td> </td><td><font size=-1><em>Makes the byte stream for this input source.</em> <a href="#z434_0">More...</a><em></em></font><br><br></td></tr>
|
---|
69 | <tr><td colspan="2"><div class="groupHeader">Getter methods</div></td></tr>
|
---|
70 | <tr><td nowrap align=right valign=top>virtual const XMLCh * </td><td valign=bottom><a class="el" href="classInputSource.html#z435_0">getEncoding</a> () const</td></tr>
|
---|
71 | <tr><td> </td><td><font size=-1><em>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="classInputSource.html#z436_0">setEncoding</a>() method.</em> <a href="#z435_0">More...</a><em></em></font><br><br></td></tr>
|
---|
72 | <tr><td nowrap align=right valign=top>virtual const XMLCh * </td><td valign=bottom><a class="el" href="classInputSource.html#z435_1">getPublicId</a> () const</td></tr>
|
---|
73 | <tr><td> </td><td><font size=-1><em>Get the public identifier for this input source.</em> <a href="#z435_1">More...</a><em></em></font><br><br></td></tr>
|
---|
74 | <tr><td nowrap align=right valign=top>virtual const XMLCh * </td><td valign=bottom><a class="el" href="classInputSource.html#z435_2">getSystemId</a> () const</td></tr>
|
---|
75 | <tr><td> </td><td><font size=-1><em>Get the system identifier for this input source.</em> <a href="#z435_2">More...</a><em></em></font><br><br></td></tr>
|
---|
76 | <tr><td nowrap align=right valign=top>virtual bool </td><td valign=bottom><a class="el" href="classInputSource.html#z435_3">getIssueFatalErrorIfNotFound</a> () const</td></tr>
|
---|
77 | <tr><td> </td><td><font size=-1><em>Get the flag that indicates if the parser should issue fatal error if this input source is not found.</em> <a href="#z435_3">More...</a><em></em></font><br><br></td></tr>
|
---|
78 | <tr><td nowrap align=right valign=top><a class="el" href="classMemoryManager.html">MemoryManager</a> * </td><td valign=bottom><a class="el" href="classInputSource.html#z435_4">getMemoryManager</a> () const</td></tr>
|
---|
79 | <tr><td colspan="2"><div class="groupHeader">Setter methods</div></td></tr>
|
---|
80 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classInputSource.html#z436_0">setEncoding</a> (const XMLCh *const encodingStr)</td></tr>
|
---|
81 | <tr><td> </td><td><font size=-1><em>Set the encoding which will be required for use with the XML text read via a stream opened by this input source.</em> <a href="#z436_0">More...</a><em></em></font><br><br></td></tr>
|
---|
82 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classInputSource.html#z436_1">setPublicId</a> (const XMLCh *const publicId)</td></tr>
|
---|
83 | <tr><td> </td><td><font size=-1><em>Set the public identifier for this input source.</em> <a href="#z436_1">More...</a><em></em></font><br><br></td></tr>
|
---|
84 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classInputSource.html#z436_2">setSystemId</a> (const XMLCh *const systemId)</td></tr>
|
---|
85 | <tr><td> </td><td><font size=-1><em>Set the system identifier for this input source.</em> <a href="#z436_2">More...</a><em></em></font><br><br></td></tr>
|
---|
86 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classInputSource.html#z436_3">setIssueFatalErrorIfNotFound</a> (const bool flag)</td></tr>
|
---|
87 | <tr><td> </td><td><font size=-1><em>Indicates if the parser should issue fatal error if this input source is not found.</em> <a href="#z436_3">More...</a><em></em></font><br><br></td></tr>
|
---|
88 | <tr><td colspan=2><br><h2>Protected Methods</h2></td></tr>
|
---|
89 | <tr><td colspan="2"><div class="groupHeader">Constructors and Destructor</div></td></tr>
|
---|
90 | <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classInputSource.html#z437_0">InputSource</a> (<a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
|
---|
91 | <tr><td> </td><td><font size=-1><em>Default constructor.</em> <a href="#z437_0">More...</a><em></em></font><br><br></td></tr>
|
---|
92 | <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classInputSource.html#z437_1">InputSource</a> (const XMLCh *const systemId, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
|
---|
93 | <tr><td> </td><td><font size=-1><em>Constructor with a system identifier as XMLCh type.</em> <a href="#z437_1">More...</a><em></em></font><br><br></td></tr>
|
---|
94 | <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classInputSource.html#z437_2">InputSource</a> (const XMLCh *const systemId, const XMLCh *const publicId, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
|
---|
95 | <tr><td> </td><td><font size=-1><em>Constructor with a system and public identifiers.</em> <a href="#z437_2">More...</a><em></em></font><br><br></td></tr>
|
---|
96 | <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classInputSource.html#z437_3">InputSource</a> (const char *const systemId, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
|
---|
97 | <tr><td> </td><td><font size=-1><em>Constructor witha system identifier as string.</em> <a href="#z437_3">More...</a><em></em></font><br><br></td></tr>
|
---|
98 | <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classInputSource.html#z437_4">InputSource</a> (const char *const systemId, const char *const publicId, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
|
---|
99 | <tr><td> </td><td><font size=-1><em>Constructor witha system and public identifiers.</em> <a href="#z437_4">More...</a><em></em></font><br><br></td></tr>
|
---|
100 | </table>
|
---|
101 | <hr><a name="_details"></a><h2>Detailed Description</h2>
|
---|
102 | A single input source for an XML entity.
|
---|
103 | <p>
|
---|
104 |
|
---|
105 | <p>
|
---|
106 | This class encapsulates information about an input source in a single object, which may include a public identifier or a system identifier
|
---|
107 | <p>
|
---|
108 |
|
---|
109 | <p>
|
---|
110 | There are two places that the application will deliver this input source to the parser: as the argument to the <a class="el" href="classParser.html#z441_4">Parser::parse</a> method, or as the return value of the <a class="el" href="classEntityResolver.html#z425_0">EntityResolver::resolveEntity</a> method.
|
---|
111 | <p>
|
---|
112 |
|
---|
113 | <p>
|
---|
114 | InputSource 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.
|
---|
115 | <p>
|
---|
116 |
|
---|
117 | <p>
|
---|
118 | 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="classInputSource.html#z434_0">makeStream</a>() method, and provides a type of stream of the correct type for the input source it represents.
|
---|
119 | <p>
|
---|
120 |
|
---|
121 | <p>
|
---|
122 | An InputSource 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.
|
---|
123 | <p>
|
---|
124 | <dl compact><dt><b>
|
---|
125 | See also: </b><dd>
|
---|
126 | <a class="el" href="classParser.html#z441_4">Parser::parse</a> , <a class="el" href="classEntityResolver.html#z425_0">EntityResolver::resolveEntity</a> </dl>
|
---|
127 | <p>
|
---|
128 | <hr><h2>Constructor & Destructor Documentation</h2>
|
---|
129 | <a name="z433_0" doxytag="InputSource::~InputSource"></a><p>
|
---|
130 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
131 | <tr>
|
---|
132 | <td class="md">
|
---|
133 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
134 | <tr>
|
---|
135 | <td class="md" nowrap valign="top"> virtual InputSource::~InputSource </td>
|
---|
136 | <td class="md" valign="top">( </td>
|
---|
137 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
138 | <td class="md" valign="top">) </td>
|
---|
139 | <td class="md" nowrap><code> [virtual]</code></td>
|
---|
140 | </tr>
|
---|
141 |
|
---|
142 | </table>
|
---|
143 | </td>
|
---|
144 | </tr>
|
---|
145 | </table>
|
---|
146 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
147 | <tr>
|
---|
148 | <td>
|
---|
149 |
|
---|
150 | </td>
|
---|
151 | <td>
|
---|
152 |
|
---|
153 | <p>
|
---|
154 | Destructor.
|
---|
155 | <p>
|
---|
156 | </td>
|
---|
157 | </tr>
|
---|
158 | </table>
|
---|
159 | <a name="z437_0" doxytag="InputSource::InputSource"></a><p>
|
---|
160 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
161 | <tr>
|
---|
162 | <td class="md">
|
---|
163 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
164 | <tr>
|
---|
165 | <td class="md" nowrap valign="top"> InputSource::InputSource </td>
|
---|
166 | <td class="md" valign="top">( </td>
|
---|
167 | <td class="md" nowrap valign="top"><a class="el" href="classMemoryManager.html">MemoryManager</a> *const </td>
|
---|
168 | <td class="mdname1" valign="top" nowrap> <em>manager</em> = <a class="el" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a> </td>
|
---|
169 | <td class="md" valign="top">) </td>
|
---|
170 | <td class="md" nowrap><code> [protected]</code></td>
|
---|
171 | </tr>
|
---|
172 |
|
---|
173 | </table>
|
---|
174 | </td>
|
---|
175 | </tr>
|
---|
176 | </table>
|
---|
177 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
178 | <tr>
|
---|
179 | <td>
|
---|
180 |
|
---|
181 | </td>
|
---|
182 | <td>
|
---|
183 |
|
---|
184 | <p>
|
---|
185 | Default constructor.
|
---|
186 | <p>
|
---|
187 | </td>
|
---|
188 | </tr>
|
---|
189 | </table>
|
---|
190 | <a name="z437_1" doxytag="InputSource::InputSource"></a><p>
|
---|
191 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
192 | <tr>
|
---|
193 | <td class="md">
|
---|
194 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
195 | <tr>
|
---|
196 | <td class="md" nowrap valign="top"> InputSource::InputSource </td>
|
---|
197 | <td class="md" valign="top">( </td>
|
---|
198 | <td class="md" nowrap valign="top">const XMLCh *const </td>
|
---|
199 | <td class="mdname" nowrap> <em>systemId</em>, </td>
|
---|
200 | </tr>
|
---|
201 | <tr>
|
---|
202 | <td></td>
|
---|
203 | <td></td>
|
---|
204 | <td class="md" nowrap><a class="el" href="classMemoryManager.html">MemoryManager</a> *const </td>
|
---|
205 | <td class="mdname" nowrap> <em>manager</em> = <a class="el" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a></td>
|
---|
206 | </tr>
|
---|
207 | <tr>
|
---|
208 | <td></td>
|
---|
209 | <td class="md">) </td>
|
---|
210 | <td class="md" colspan="2"><code> [protected]</code></td>
|
---|
211 | </tr>
|
---|
212 |
|
---|
213 | </table>
|
---|
214 | </td>
|
---|
215 | </tr>
|
---|
216 | </table>
|
---|
217 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
218 | <tr>
|
---|
219 | <td>
|
---|
220 |
|
---|
221 | </td>
|
---|
222 | <td>
|
---|
223 |
|
---|
224 | <p>
|
---|
225 | Constructor with a system identifier as XMLCh type.
|
---|
226 | <p>
|
---|
227 | <dl compact><dt><b>
|
---|
228 | Parameters: </b><dd>
|
---|
229 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
230 | <tr><td valign=top><em>systemId</em> </td><td>
|
---|
231 | The system identifier (URI). </td></tr>
|
---|
232 | <tr><td valign=top><em>manager</em> </td><td>
|
---|
233 | Pointer to the memory manager to be used to allocate objects. </td></tr>
|
---|
234 | </table>
|
---|
235 | </dl> </td>
|
---|
236 | </tr>
|
---|
237 | </table>
|
---|
238 | <a name="z437_2" doxytag="InputSource::InputSource"></a><p>
|
---|
239 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
240 | <tr>
|
---|
241 | <td class="md">
|
---|
242 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
243 | <tr>
|
---|
244 | <td class="md" nowrap valign="top"> InputSource::InputSource </td>
|
---|
245 | <td class="md" valign="top">( </td>
|
---|
246 | <td class="md" nowrap valign="top">const XMLCh *const </td>
|
---|
247 | <td class="mdname" nowrap> <em>systemId</em>, </td>
|
---|
248 | </tr>
|
---|
249 | <tr>
|
---|
250 | <td></td>
|
---|
251 | <td></td>
|
---|
252 | <td class="md" nowrap>const XMLCh *const </td>
|
---|
253 | <td class="mdname" nowrap> <em>publicId</em>, </td>
|
---|
254 | </tr>
|
---|
255 | <tr>
|
---|
256 | <td></td>
|
---|
257 | <td></td>
|
---|
258 | <td class="md" nowrap><a class="el" href="classMemoryManager.html">MemoryManager</a> *const </td>
|
---|
259 | <td class="mdname" nowrap> <em>manager</em> = <a class="el" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a></td>
|
---|
260 | </tr>
|
---|
261 | <tr>
|
---|
262 | <td></td>
|
---|
263 | <td class="md">) </td>
|
---|
264 | <td class="md" colspan="2"><code> [protected]</code></td>
|
---|
265 | </tr>
|
---|
266 |
|
---|
267 | </table>
|
---|
268 | </td>
|
---|
269 | </tr>
|
---|
270 | </table>
|
---|
271 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
272 | <tr>
|
---|
273 | <td>
|
---|
274 |
|
---|
275 | </td>
|
---|
276 | <td>
|
---|
277 |
|
---|
278 | <p>
|
---|
279 | Constructor with a system and public identifiers.
|
---|
280 | <p>
|
---|
281 | <dl compact><dt><b>
|
---|
282 | Parameters: </b><dd>
|
---|
283 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
284 | <tr><td valign=top><em>systemId</em> </td><td>
|
---|
285 | The system identifier (URI). </td></tr>
|
---|
286 | <tr><td valign=top><em>publicId</em> </td><td>
|
---|
287 | The public identifier as in the entity definition. </td></tr>
|
---|
288 | <tr><td valign=top><em>manager</em> </td><td>
|
---|
289 | Pointer to the memory manager to be used to allocate objects. </td></tr>
|
---|
290 | </table>
|
---|
291 | </dl> </td>
|
---|
292 | </tr>
|
---|
293 | </table>
|
---|
294 | <a name="z437_3" doxytag="InputSource::InputSource"></a><p>
|
---|
295 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
296 | <tr>
|
---|
297 | <td class="md">
|
---|
298 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
299 | <tr>
|
---|
300 | <td class="md" nowrap valign="top"> InputSource::InputSource </td>
|
---|
301 | <td class="md" valign="top">( </td>
|
---|
302 | <td class="md" nowrap valign="top">const char *const </td>
|
---|
303 | <td class="mdname" nowrap> <em>systemId</em>, </td>
|
---|
304 | </tr>
|
---|
305 | <tr>
|
---|
306 | <td></td>
|
---|
307 | <td></td>
|
---|
308 | <td class="md" nowrap><a class="el" href="classMemoryManager.html">MemoryManager</a> *const </td>
|
---|
309 | <td class="mdname" nowrap> <em>manager</em> = <a class="el" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a></td>
|
---|
310 | </tr>
|
---|
311 | <tr>
|
---|
312 | <td></td>
|
---|
313 | <td class="md">) </td>
|
---|
314 | <td class="md" colspan="2"><code> [protected]</code></td>
|
---|
315 | </tr>
|
---|
316 |
|
---|
317 | </table>
|
---|
318 | </td>
|
---|
319 | </tr>
|
---|
320 | </table>
|
---|
321 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
322 | <tr>
|
---|
323 | <td>
|
---|
324 |
|
---|
325 | </td>
|
---|
326 | <td>
|
---|
327 |
|
---|
328 | <p>
|
---|
329 | Constructor witha system identifier as string.
|
---|
330 | <p>
|
---|
331 | <dl compact><dt><b>
|
---|
332 | Parameters: </b><dd>
|
---|
333 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
334 | <tr><td valign=top><em>systemId</em> </td><td>
|
---|
335 | The system identifier (URI). </td></tr>
|
---|
336 | <tr><td valign=top><em>manager</em> </td><td>
|
---|
337 | Pointer to the memory manager to be used to allocate objects. </td></tr>
|
---|
338 | </table>
|
---|
339 | </dl> </td>
|
---|
340 | </tr>
|
---|
341 | </table>
|
---|
342 | <a name="z437_4" doxytag="InputSource::InputSource"></a><p>
|
---|
343 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
344 | <tr>
|
---|
345 | <td class="md">
|
---|
346 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
347 | <tr>
|
---|
348 | <td class="md" nowrap valign="top"> InputSource::InputSource </td>
|
---|
349 | <td class="md" valign="top">( </td>
|
---|
350 | <td class="md" nowrap valign="top">const char *const </td>
|
---|
351 | <td class="mdname" nowrap> <em>systemId</em>, </td>
|
---|
352 | </tr>
|
---|
353 | <tr>
|
---|
354 | <td></td>
|
---|
355 | <td></td>
|
---|
356 | <td class="md" nowrap>const char *const </td>
|
---|
357 | <td class="mdname" nowrap> <em>publicId</em>, </td>
|
---|
358 | </tr>
|
---|
359 | <tr>
|
---|
360 | <td></td>
|
---|
361 | <td></td>
|
---|
362 | <td class="md" nowrap><a class="el" href="classMemoryManager.html">MemoryManager</a> *const </td>
|
---|
363 | <td class="mdname" nowrap> <em>manager</em> = <a class="el" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a></td>
|
---|
364 | </tr>
|
---|
365 | <tr>
|
---|
366 | <td></td>
|
---|
367 | <td class="md">) </td>
|
---|
368 | <td class="md" colspan="2"><code> [protected]</code></td>
|
---|
369 | </tr>
|
---|
370 |
|
---|
371 | </table>
|
---|
372 | </td>
|
---|
373 | </tr>
|
---|
374 | </table>
|
---|
375 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
376 | <tr>
|
---|
377 | <td>
|
---|
378 |
|
---|
379 | </td>
|
---|
380 | <td>
|
---|
381 |
|
---|
382 | <p>
|
---|
383 | Constructor witha system and public identifiers.
|
---|
384 | <p>
|
---|
385 | Both as string <dl compact><dt><b>
|
---|
386 | Parameters: </b><dd>
|
---|
387 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
388 | <tr><td valign=top><em>systemId</em> </td><td>
|
---|
389 | The system identifier (URI). </td></tr>
|
---|
390 | <tr><td valign=top><em>publicId</em> </td><td>
|
---|
391 | The public identifier as in the entity definition. </td></tr>
|
---|
392 | <tr><td valign=top><em>manager</em> </td><td>
|
---|
393 | Pointer to the memory manager to be used to allocate objects. </td></tr>
|
---|
394 | </table>
|
---|
395 | </dl> </td>
|
---|
396 | </tr>
|
---|
397 | </table>
|
---|
398 | <hr><h2>Member Function Documentation</h2>
|
---|
399 | <a name="z435_0" doxytag="InputSource::getEncoding"></a><p>
|
---|
400 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
401 | <tr>
|
---|
402 | <td class="md">
|
---|
403 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
404 | <tr>
|
---|
405 | <td class="md" nowrap valign="top"> const XMLCh * InputSource::getEncoding </td>
|
---|
406 | <td class="md" valign="top">( </td>
|
---|
407 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
408 | <td class="md" valign="top">) </td>
|
---|
409 | <td class="md" nowrap> const<code> [virtual]</code></td>
|
---|
410 | </tr>
|
---|
411 |
|
---|
412 | </table>
|
---|
413 | </td>
|
---|
414 | </tr>
|
---|
415 | </table>
|
---|
416 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
417 | <tr>
|
---|
418 | <td>
|
---|
419 |
|
---|
420 | </td>
|
---|
421 | <td>
|
---|
422 |
|
---|
423 | <p>
|
---|
424 | 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="classInputSource.html#z436_0">setEncoding</a>() method.
|
---|
425 | <p>
|
---|
426 | This method returns name of the encoding that is to be forced. If the encoding has never been forced, it returns a null pointer.
|
---|
427 | <p>
|
---|
428 | <dl compact><dt><b>
|
---|
429 | Returns: </b><dd>
|
---|
430 | The forced encoding, or null if none was supplied. </dl><dl compact><dt><b>
|
---|
431 | See also: </b><dd>
|
---|
432 | <a class="el" href="classInputSource.html#z436_0">setEncoding</a> </dl>
|
---|
433 | <p>
|
---|
434 | Reimplemented in <a class="el" href="classWrapper4DOMInputSource.html#z237_0">Wrapper4DOMInputSource</a>. </td>
|
---|
435 | </tr>
|
---|
436 | </table>
|
---|
437 | <a name="z435_3" doxytag="InputSource::getIssueFatalErrorIfNotFound"></a><p>
|
---|
438 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
439 | <tr>
|
---|
440 | <td class="md">
|
---|
441 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
442 | <tr>
|
---|
443 | <td class="md" nowrap valign="top"> bool InputSource::getIssueFatalErrorIfNotFound </td>
|
---|
444 | <td class="md" valign="top">( </td>
|
---|
445 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
446 | <td class="md" valign="top">) </td>
|
---|
447 | <td class="md" nowrap> const<code> [virtual]</code></td>
|
---|
448 | </tr>
|
---|
449 |
|
---|
450 | </table>
|
---|
451 | </td>
|
---|
452 | </tr>
|
---|
453 | </table>
|
---|
454 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
455 | <tr>
|
---|
456 | <td>
|
---|
457 |
|
---|
458 | </td>
|
---|
459 | <td>
|
---|
460 |
|
---|
461 | <p>
|
---|
462 | Get the flag that indicates if the parser should issue fatal error if this input source is not found.
|
---|
463 | <p>
|
---|
464 | <dl compact><dt><b>
|
---|
465 | Returns: </b><dd>
|
---|
466 | True if the parser should issue fatal error if this input source is not found. False if the parser issue warning message instead. </dl><dl compact><dt><b>
|
---|
467 | See also: </b><dd>
|
---|
468 | <a class="el" href="classInputSource.html#z436_3">setIssueFatalErrorIfNotFound</a> </dl>
|
---|
469 | <p>
|
---|
470 | Reimplemented in <a class="el" href="classWrapper4DOMInputSource.html#z237_3">Wrapper4DOMInputSource</a>. </td>
|
---|
471 | </tr>
|
---|
472 | </table>
|
---|
473 | <a name="z435_4" doxytag="InputSource::getMemoryManager"></a><p>
|
---|
474 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
475 | <tr>
|
---|
476 | <td class="md">
|
---|
477 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
478 | <tr>
|
---|
479 | <td class="md" nowrap valign="top"> <a class="el" href="classMemoryManager.html">MemoryManager</a> * InputSource::getMemoryManager </td>
|
---|
480 | <td class="md" valign="top">( </td>
|
---|
481 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
482 | <td class="md" valign="top">) </td>
|
---|
483 | <td class="md" nowrap> const</td>
|
---|
484 | </tr>
|
---|
485 |
|
---|
486 | </table>
|
---|
487 | </td>
|
---|
488 | </tr>
|
---|
489 | </table>
|
---|
490 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
491 | <tr>
|
---|
492 | <td>
|
---|
493 |
|
---|
494 | </td>
|
---|
495 | <td>
|
---|
496 |
|
---|
497 | <p>
|
---|
498 | </td>
|
---|
499 | </tr>
|
---|
500 | </table>
|
---|
501 | <a name="z435_1" doxytag="InputSource::getPublicId"></a><p>
|
---|
502 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
503 | <tr>
|
---|
504 | <td class="md">
|
---|
505 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
506 | <tr>
|
---|
507 | <td class="md" nowrap valign="top"> const XMLCh * InputSource::getPublicId </td>
|
---|
508 | <td class="md" valign="top">( </td>
|
---|
509 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
510 | <td class="md" valign="top">) </td>
|
---|
511 | <td class="md" nowrap> const<code> [virtual]</code></td>
|
---|
512 | </tr>
|
---|
513 |
|
---|
514 | </table>
|
---|
515 | </td>
|
---|
516 | </tr>
|
---|
517 | </table>
|
---|
518 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
519 | <tr>
|
---|
520 | <td>
|
---|
521 |
|
---|
522 | </td>
|
---|
523 | <td>
|
---|
524 |
|
---|
525 | <p>
|
---|
526 | Get the public identifier for this input source.
|
---|
527 | <p>
|
---|
528 | <dl compact><dt><b>
|
---|
529 | Returns: </b><dd>
|
---|
530 | The public identifier, or null if none was supplied. </dl><dl compact><dt><b>
|
---|
531 | See also: </b><dd>
|
---|
532 | <a class="el" href="classInputSource.html#z436_1">setPublicId</a> </dl>
|
---|
533 | <p>
|
---|
534 | Reimplemented in <a class="el" href="classWrapper4DOMInputSource.html#z237_1">Wrapper4DOMInputSource</a>. </td>
|
---|
535 | </tr>
|
---|
536 | </table>
|
---|
537 | <a name="z435_2" doxytag="InputSource::getSystemId"></a><p>
|
---|
538 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
539 | <tr>
|
---|
540 | <td class="md">
|
---|
541 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
542 | <tr>
|
---|
543 | <td class="md" nowrap valign="top"> const XMLCh * InputSource::getSystemId </td>
|
---|
544 | <td class="md" valign="top">( </td>
|
---|
545 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
546 | <td class="md" valign="top">) </td>
|
---|
547 | <td class="md" nowrap> const<code> [virtual]</code></td>
|
---|
548 | </tr>
|
---|
549 |
|
---|
550 | </table>
|
---|
551 | </td>
|
---|
552 | </tr>
|
---|
553 | </table>
|
---|
554 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
555 | <tr>
|
---|
556 | <td>
|
---|
557 |
|
---|
558 | </td>
|
---|
559 | <td>
|
---|
560 |
|
---|
561 | <p>
|
---|
562 | Get the system identifier for this input source.
|
---|
563 | <p>
|
---|
564 |
|
---|
565 | <p>
|
---|
566 | If the system ID is a URL, it will be fully resolved.
|
---|
567 | <p>
|
---|
568 | <dl compact><dt><b>
|
---|
569 | Returns: </b><dd>
|
---|
570 | The system identifier. </dl><dl compact><dt><b>
|
---|
571 | See also: </b><dd>
|
---|
572 | <a class="el" href="classInputSource.html#z436_2">setSystemId</a> </dl>
|
---|
573 | <p>
|
---|
574 | Reimplemented in <a class="el" href="classWrapper4DOMInputSource.html#z237_2">Wrapper4DOMInputSource</a>. </td>
|
---|
575 | </tr>
|
---|
576 | </table>
|
---|
577 | <a name="z434_0" doxytag="InputSource::makeStream"></a><p>
|
---|
578 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
579 | <tr>
|
---|
580 | <td class="md">
|
---|
581 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
582 | <tr>
|
---|
583 | <td class="md" nowrap valign="top"> virtual <a class="el" href="classBinInputStream.html">BinInputStream</a>* InputSource::makeStream </td>
|
---|
584 | <td class="md" valign="top">( </td>
|
---|
585 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
586 | <td class="md" valign="top">) </td>
|
---|
587 | <td class="md" nowrap> const<code> [pure virtual]</code></td>
|
---|
588 | </tr>
|
---|
589 |
|
---|
590 | </table>
|
---|
591 | </td>
|
---|
592 | </tr>
|
---|
593 | </table>
|
---|
594 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
595 | <tr>
|
---|
596 | <td>
|
---|
597 |
|
---|
598 | </td>
|
---|
599 | <td>
|
---|
600 |
|
---|
601 | <p>
|
---|
602 | Makes the byte stream for this input source.
|
---|
603 | <p>
|
---|
604 |
|
---|
605 | <p>
|
---|
606 | 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.
|
---|
607 | <p>
|
---|
608 | <dl compact><dt><b>
|
---|
609 | See also: </b><dd>
|
---|
610 | <a class="el" href="classBinInputStream.html">BinInputStream</a> </dl>
|
---|
611 | <p>
|
---|
612 | Implemented in <a class="el" href="classLocalFileInputSource.html#z211_0">LocalFileInputSource</a>. </td>
|
---|
613 | </tr>
|
---|
614 | </table>
|
---|
615 | <a name="z436_0" doxytag="InputSource::setEncoding"></a><p>
|
---|
616 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
617 | <tr>
|
---|
618 | <td class="md">
|
---|
619 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
620 | <tr>
|
---|
621 | <td class="md" nowrap valign="top"> virtual void InputSource::setEncoding </td>
|
---|
622 | <td class="md" valign="top">( </td>
|
---|
623 | <td class="md" nowrap valign="top">const XMLCh *const </td>
|
---|
624 | <td class="mdname1" valign="top" nowrap> <em>encodingStr</em> </td>
|
---|
625 | <td class="md" valign="top">) </td>
|
---|
626 | <td class="md" nowrap><code> [virtual]</code></td>
|
---|
627 | </tr>
|
---|
628 |
|
---|
629 | </table>
|
---|
630 | </td>
|
---|
631 | </tr>
|
---|
632 | </table>
|
---|
633 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
634 | <tr>
|
---|
635 | <td>
|
---|
636 |
|
---|
637 | </td>
|
---|
638 | <td>
|
---|
639 |
|
---|
640 | <p>
|
---|
641 | Set the encoding which will be required for use with the XML text read via a stream opened by this input source.
|
---|
642 | <p>
|
---|
643 |
|
---|
644 | <p>
|
---|
645 | 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.<dl compact><dt><b>
|
---|
646 | Parameters: </b><dd>
|
---|
647 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
648 | <tr><td valign=top><em>encodingStr</em> </td><td>
|
---|
649 | The name of the encoding to force. </td></tr>
|
---|
650 | </table>
|
---|
651 | </dl>
|
---|
652 | <p>
|
---|
653 | Reimplemented in <a class="el" href="classWrapper4DOMInputSource.html#z238_0">Wrapper4DOMInputSource</a>. </td>
|
---|
654 | </tr>
|
---|
655 | </table>
|
---|
656 | <a name="z436_3" doxytag="InputSource::setIssueFatalErrorIfNotFound"></a><p>
|
---|
657 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
658 | <tr>
|
---|
659 | <td class="md">
|
---|
660 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
661 | <tr>
|
---|
662 | <td class="md" nowrap valign="top"> void InputSource::setIssueFatalErrorIfNotFound </td>
|
---|
663 | <td class="md" valign="top">( </td>
|
---|
664 | <td class="md" nowrap valign="top">const bool </td>
|
---|
665 | <td class="mdname1" valign="top" nowrap> <em>flag</em> </td>
|
---|
666 | <td class="md" valign="top">) </td>
|
---|
667 | <td class="md" nowrap><code> [virtual]</code></td>
|
---|
668 | </tr>
|
---|
669 |
|
---|
670 | </table>
|
---|
671 | </td>
|
---|
672 | </tr>
|
---|
673 | </table>
|
---|
674 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
675 | <tr>
|
---|
676 | <td>
|
---|
677 |
|
---|
678 | </td>
|
---|
679 | <td>
|
---|
680 |
|
---|
681 | <p>
|
---|
682 | Indicates if the parser should issue fatal error if this input source is not found.
|
---|
683 | <p>
|
---|
684 | If set to false, the parser issue warning message instead.<dl compact><dt><b>
|
---|
685 | Parameters: </b><dd>
|
---|
686 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
687 | <tr><td valign=top><em>flag</em> </td><td>
|
---|
688 | 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>
|
---|
689 | </table>
|
---|
690 | </dl><dl compact><dt><b>
|
---|
691 | See also: </b><dd>
|
---|
692 | <a class="el" href="classInputSource.html#z435_3">getIssueFatalErrorIfNotFound</a> </dl>
|
---|
693 | <p>
|
---|
694 | Reimplemented in <a class="el" href="classWrapper4DOMInputSource.html#z238_3">Wrapper4DOMInputSource</a>. </td>
|
---|
695 | </tr>
|
---|
696 | </table>
|
---|
697 | <a name="z436_1" doxytag="InputSource::setPublicId"></a><p>
|
---|
698 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
699 | <tr>
|
---|
700 | <td class="md">
|
---|
701 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
702 | <tr>
|
---|
703 | <td class="md" nowrap valign="top"> virtual void InputSource::setPublicId </td>
|
---|
704 | <td class="md" valign="top">( </td>
|
---|
705 | <td class="md" nowrap valign="top">const XMLCh *const </td>
|
---|
706 | <td class="mdname1" valign="top" nowrap> <em>publicId</em> </td>
|
---|
707 | <td class="md" valign="top">) </td>
|
---|
708 | <td class="md" nowrap><code> [virtual]</code></td>
|
---|
709 | </tr>
|
---|
710 |
|
---|
711 | </table>
|
---|
712 | </td>
|
---|
713 | </tr>
|
---|
714 | </table>
|
---|
715 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
716 | <tr>
|
---|
717 | <td>
|
---|
718 |
|
---|
719 | </td>
|
---|
720 | <td>
|
---|
721 |
|
---|
722 | <p>
|
---|
723 | Set the public identifier for this input source.
|
---|
724 | <p>
|
---|
725 |
|
---|
726 | <p>
|
---|
727 | The public identifier is always optional: if the application writer includes one, it will be provided as part of the location information.<dl compact><dt><b>
|
---|
728 | Parameters: </b><dd>
|
---|
729 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
730 | <tr><td valign=top><em>publicId</em> </td><td>
|
---|
731 | The public identifier as a string. </td></tr>
|
---|
732 | </table>
|
---|
733 | </dl><dl compact><dt><b>
|
---|
734 | See also: </b><dd>
|
---|
735 | <a class="el" href="classLocator.html#z439_0">Locator::getPublicId</a> , <a class="el" href="classSAXParseException.html#z447_2">SAXParseException::getPublicId</a> , <a class="el" href="classInputSource.html#z435_1">getPublicId</a> </dl>
|
---|
736 | <p>
|
---|
737 | Reimplemented in <a class="el" href="classWrapper4DOMInputSource.html#z238_1">Wrapper4DOMInputSource</a>. </td>
|
---|
738 | </tr>
|
---|
739 | </table>
|
---|
740 | <a name="z436_2" doxytag="InputSource::setSystemId"></a><p>
|
---|
741 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
742 | <tr>
|
---|
743 | <td class="md">
|
---|
744 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
745 | <tr>
|
---|
746 | <td class="md" nowrap valign="top"> virtual void InputSource::setSystemId </td>
|
---|
747 | <td class="md" valign="top">( </td>
|
---|
748 | <td class="md" nowrap valign="top">const XMLCh *const </td>
|
---|
749 | <td class="mdname1" valign="top" nowrap> <em>systemId</em> </td>
|
---|
750 | <td class="md" valign="top">) </td>
|
---|
751 | <td class="md" nowrap><code> [virtual]</code></td>
|
---|
752 | </tr>
|
---|
753 |
|
---|
754 | </table>
|
---|
755 | </td>
|
---|
756 | </tr>
|
---|
757 | </table>
|
---|
758 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
759 | <tr>
|
---|
760 | <td>
|
---|
761 |
|
---|
762 | </td>
|
---|
763 | <td>
|
---|
764 |
|
---|
765 | <p>
|
---|
766 | Set the system identifier for this input source.
|
---|
767 | <p>
|
---|
768 |
|
---|
769 | <p>
|
---|
770 | Set the system identifier for this input source.
|
---|
771 | <p>
|
---|
772 | 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.
|
---|
773 | <p>
|
---|
774 |
|
---|
775 | <p>
|
---|
776 | If the system ID is a URL, it must be fully resolved.<dl compact><dt><b>
|
---|
777 | Parameters: </b><dd>
|
---|
778 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
779 | <tr><td valign=top><em>systemId</em> </td><td>
|
---|
780 | The system identifier as a string. </td></tr>
|
---|
781 | </table>
|
---|
782 | </dl><dl compact><dt><b>
|
---|
783 | See also: </b><dd>
|
---|
784 | <a class="el" href="classInputSource.html#z435_2">getSystemId</a> , <a class="el" href="classLocator.html#z439_1">Locator::getSystemId</a> , <a class="el" href="classSAXParseException.html#z447_3">SAXParseException::getSystemId</a> </dl>
|
---|
785 | <p>
|
---|
786 | Reimplemented in <a class="el" href="classWrapper4DOMInputSource.html#z238_2">Wrapper4DOMInputSource</a>. </td>
|
---|
787 | </tr>
|
---|
788 | </table>
|
---|
789 | <hr>The documentation for this class was generated from the following file:<ul>
|
---|
790 | <li><a class="el" href="InputSource_8hpp-source.html">InputSource.hpp</a></ul>
|
---|
791 | </FONT></TD></TR></TABLE><BR>
|
---|
792 | </TD></TR></TABLE></TD></TR></TABLE><BR><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD bgcolor="#0086b2"><IMG height="1" src="images/dot.gif" width="1" alt=""></TD></TR><TR><TD align="center"><FONT color="#0086b2" size="-1"><I>
|
---|
793 | Copyright © 1994-2004 The Apache Software Foundation.
|
---|
794 | All Rights Reserved.
|
---|
795 | </I></FONT></TD></TR></TABLE></BODY></HTML>
|
---|