1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
<title>Xerces-C++: BinFileInputStream Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.5.4 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li class="current"><a href="classes.html"><span>Classes</span></a></li>
12
<li><a href="files.html"><span>Files</span></a></li>
13
<li><a href="pages.html"><span>Related Pages</span></a></li>
18
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
19
<li><a href="annotated.html"><span>Class List</span></a></li>
20
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
21
<li><a href="functions.html"><span>Class Members</span></a></li>
24
<h1>BinFileInputStream Class Reference</h1><!-- doxytag: class="BinFileInputStream" --><!-- doxytag: inherits="BinInputStream" --><div class="dynheader">
25
Inheritance diagram for BinFileInputStream:</div>
26
<div class="dynsection">
28
<p><center><img src="classBinFileInputStream.png" usemap="#BinFileInputStream_map" border="0" alt=""></center>
29
<map name="BinFileInputStream_map">
30
<area href="classBinInputStream.html" alt="BinInputStream" shape="rect" coords="0,56,117,80">
31
<area href="classXMemory.html" alt="XMemory" shape="rect" coords="0,0,117,24">
36
<a href="classBinFileInputStream-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
38
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
39
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBinFileInputStream.html#721189e5e1da6861dbef834d738b96fd">BinFileInputStream</a> (const <a class="el" href="Xerces__autoconf__config_8msvc_8hpp.html#fae8f92d83170d97f757f704eca7f52a">XMLCh</a> *const fileName, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
41
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBinFileInputStream.html#46065c9426ec8049fce64161d002d7d4">BinFileInputStream</a> (const char *const fileName, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
43
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBinFileInputStream.html#615d34451ccfc5f5f629c1b8c7551d8f">BinFileInputStream</a> (const <a class="el" href="XMLFileMgr_8hpp.html#6738b6a1cc86fbf4c231eac94e357446">FileHandle</a> toUse, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
45
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classBinFileInputStream.html#c2f4e26c5a4177644508e91648709c56">~BinFileInputStream</a> ()</td></tr>
47
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classBinFileInputStream.html#ef94117b67875be1d8dc286f946ce8f4">getIsOpen</a> () const </td></tr>
49
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="Xerces__autoconf__config_8msvc_8hpp.html#7647261a546ac47bda863a51d24ad898">XMLFilePos</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBinFileInputStream.html#f388f675fb391bfd4da38c7633416dca">getSize</a> () const </td></tr>
51
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBinFileInputStream.html#c4fce590c26a905a2a952ce65e15380c">reset</a> ()</td></tr>
53
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="Xerces__autoconf__config_8msvc_8hpp.html#7647261a546ac47bda863a51d24ad898">XMLFilePos</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBinFileInputStream.html#30d3c89d2f62768db8e9913b6a3a2dd4">curPos</a> () const </td></tr>
55
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="Xerces__autoconf__config_8msvc_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBinFileInputStream.html#2db44ccf62ffaa8355600aa8e8fb0f71">readBytes</a> (<a class="el" href="XercesDefs_8hpp.html#7470c7a32c59355685ebcd878a33f126">XMLByte</a> *const toFill, const <a class="el" href="Xerces__autoconf__config_8msvc_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> maxToRead)</td></tr>
57
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const <a class="el" href="Xerces__autoconf__config_8msvc_8hpp.html#fae8f92d83170d97f757f704eca7f52a">XMLCh</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classBinFileInputStream.html#46e2bb0c28db13c9d82bc1167922ed5a">getContentType</a> () const </td></tr>
59
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the "out-of-band" content type for the data supplied by this input stream in the form of the media-type production (mime type with optional parameters such as encoding) as defined by the HTTP 1.1 specification. <a href="#46e2bb0c28db13c9d82bc1167922ed5a"></a><br></td></tr>
61
<hr><h2>Constructor & Destructor Documentation</h2>
62
<a class="anchor" name="721189e5e1da6861dbef834d738b96fd"></a><!-- doxytag: member="BinFileInputStream::BinFileInputStream" ref="721189e5e1da6861dbef834d738b96fd" args="(const XMLCh *const fileName, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)" -->
64
<div class="memproto">
65
<table class="memname">
67
<td class="memname">BinFileInputStream::BinFileInputStream </td>
69
<td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8msvc_8hpp.html#fae8f92d83170d97f757f704eca7f52a">XMLCh</a> *const </td>
70
<td class="paramname"> <em>fileName</em>, </td>
73
<td class="paramkey"></td>
75
<td class="paramtype"><a class="el" href="classMemoryManager.html">MemoryManager</a> *const </td>
76
<td class="paramname"> <em>manager</em> = <code><a class="el" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a></code></td><td> </td>
81
<td></td><td></td><td width="100%"></td>
91
<a class="anchor" name="46065c9426ec8049fce64161d002d7d4"></a><!-- doxytag: member="BinFileInputStream::BinFileInputStream" ref="46065c9426ec8049fce64161d002d7d4" args="(const char *const fileName, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)" -->
93
<div class="memproto">
94
<table class="memname">
96
<td class="memname">BinFileInputStream::BinFileInputStream </td>
98
<td class="paramtype">const char *const </td>
99
<td class="paramname"> <em>fileName</em>, </td>
102
<td class="paramkey"></td>
104
<td class="paramtype"><a class="el" href="classMemoryManager.html">MemoryManager</a> *const </td>
105
<td class="paramname"> <em>manager</em> = <code><a class="el" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a></code></td><td> </td>
110
<td></td><td></td><td width="100%"></td>
120
<a class="anchor" name="615d34451ccfc5f5f629c1b8c7551d8f"></a><!-- doxytag: member="BinFileInputStream::BinFileInputStream" ref="615d34451ccfc5f5f629c1b8c7551d8f" args="(const FileHandle toUse, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)" -->
121
<div class="memitem">
122
<div class="memproto">
123
<table class="memname">
125
<td class="memname">BinFileInputStream::BinFileInputStream </td>
127
<td class="paramtype">const <a class="el" href="XMLFileMgr_8hpp.html#6738b6a1cc86fbf4c231eac94e357446">FileHandle</a> </td>
128
<td class="paramname"> <em>toUse</em>, </td>
131
<td class="paramkey"></td>
133
<td class="paramtype"><a class="el" href="classMemoryManager.html">MemoryManager</a> *const </td>
134
<td class="paramname"> <em>manager</em> = <code><a class="el" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a></code></td><td> </td>
139
<td></td><td></td><td width="100%"></td>
149
<a class="anchor" name="c2f4e26c5a4177644508e91648709c56"></a><!-- doxytag: member="BinFileInputStream::~BinFileInputStream" ref="c2f4e26c5a4177644508e91648709c56" args="()" -->
150
<div class="memitem">
151
<div class="memproto">
152
<table class="memname">
154
<td class="memname">virtual BinFileInputStream::~BinFileInputStream </td>
156
<td class="paramname"> </td>
157
<td> ) </td>
158
<td width="100%"><code> [virtual]</code></td>
168
<hr><h2>Member Function Documentation</h2>
169
<a class="anchor" name="ef94117b67875be1d8dc286f946ce8f4"></a><!-- doxytag: member="BinFileInputStream::getIsOpen" ref="ef94117b67875be1d8dc286f946ce8f4" args="() const " -->
170
<div class="memitem">
171
<div class="memproto">
172
<table class="memname">
174
<td class="memname">bool BinFileInputStream::getIsOpen </td>
176
<td class="paramname"> </td>
177
<td> ) </td>
178
<td width="100%"> const</td>
188
<a class="anchor" name="f388f675fb391bfd4da38c7633416dca"></a><!-- doxytag: member="BinFileInputStream::getSize" ref="f388f675fb391bfd4da38c7633416dca" args="() const " -->
189
<div class="memitem">
190
<div class="memproto">
191
<table class="memname">
193
<td class="memname"><a class="el" href="Xerces__autoconf__config_8msvc_8hpp.html#7647261a546ac47bda863a51d24ad898">XMLFilePos</a> BinFileInputStream::getSize </td>
195
<td class="paramname"> </td>
196
<td> ) </td>
197
<td width="100%"> const</td>
207
<a class="anchor" name="c4fce590c26a905a2a952ce65e15380c"></a><!-- doxytag: member="BinFileInputStream::reset" ref="c4fce590c26a905a2a952ce65e15380c" args="()" -->
208
<div class="memitem">
209
<div class="memproto">
210
<table class="memname">
212
<td class="memname">void BinFileInputStream::reset </td>
214
<td class="paramname"> </td>
215
<td> ) </td>
216
<td width="100%"></td>
226
<a class="anchor" name="30d3c89d2f62768db8e9913b6a3a2dd4"></a><!-- doxytag: member="BinFileInputStream::curPos" ref="30d3c89d2f62768db8e9913b6a3a2dd4" args="() const " -->
227
<div class="memitem">
228
<div class="memproto">
229
<table class="memname">
231
<td class="memname">virtual <a class="el" href="Xerces__autoconf__config_8msvc_8hpp.html#7647261a546ac47bda863a51d24ad898">XMLFilePos</a> BinFileInputStream::curPos </td>
233
<td class="paramname"> </td>
234
<td> ) </td>
235
<td width="100%"> const<code> [virtual]</code></td>
243
<p>Implements <a class="el" href="classBinInputStream.html#959a030c22785e3bcee6e7dd6800df71">BinInputStream</a>.</p>
247
<a class="anchor" name="2db44ccf62ffaa8355600aa8e8fb0f71"></a><!-- doxytag: member="BinFileInputStream::readBytes" ref="2db44ccf62ffaa8355600aa8e8fb0f71" args="(XMLByte *const toFill, const XMLSize_t maxToRead)" -->
248
<div class="memitem">
249
<div class="memproto">
250
<table class="memname">
252
<td class="memname">virtual <a class="el" href="Xerces__autoconf__config_8msvc_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> BinFileInputStream::readBytes </td>
254
<td class="paramtype"><a class="el" href="XercesDefs_8hpp.html#7470c7a32c59355685ebcd878a33f126">XMLByte</a> *const </td>
255
<td class="paramname"> <em>toFill</em>, </td>
258
<td class="paramkey"></td>
260
<td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8msvc_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> </td>
261
<td class="paramname"> <em>maxToRead</em></td><td> </td>
266
<td></td><td></td><td width="100%"><code> [virtual]</code></td>
274
<p>Implements <a class="el" href="classBinInputStream.html#2245666a5058c666d0238ea5e5b5334b">BinInputStream</a>.</p>
278
<a class="anchor" name="46e2bb0c28db13c9d82bc1167922ed5a"></a><!-- doxytag: member="BinFileInputStream::getContentType" ref="46e2bb0c28db13c9d82bc1167922ed5a" args="() const " -->
279
<div class="memitem">
280
<div class="memproto">
281
<table class="memname">
283
<td class="memname">virtual const <a class="el" href="Xerces__autoconf__config_8msvc_8hpp.html#fae8f92d83170d97f757f704eca7f52a">XMLCh</a>* BinFileInputStream::getContentType </td>
285
<td class="paramname"> </td>
286
<td> ) </td>
287
<td width="100%"> const<code> [virtual]</code></td>
294
Return the "out-of-band" content type for the data supplied by this input stream in the form of the media-type production (mime type with optional parameters such as encoding) as defined by the HTTP 1.1 specification.
296
If no such content type is provided for the data, 0 is returned. This function is expected to return the correct value at any time after the construction of the stream.<p>
297
An example of the stream that may return non-0 from this function is an HTTP stream with the value returned taken from the "Content-Type" HTTP header. Note also that if the encoding of the data is known to the application by some other means then the setEncoding function in the <a class="el" href="classInputSource.html" title="A single input source for an XML entity.">InputSource</a> object should be used instead. The getContentType function should only be used to return information that is intrinsic to the stream.<p>
298
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The content type, or 0 if one is not available. </dd></dl>
300
<p>Implements <a class="el" href="classBinInputStream.html#cb658844f9600ad353604bc403e74ff4">BinInputStream</a>.</p>
304
<hr>The documentation for this class was generated from the following file:<ul>
305
<li><a class="el" href="BinFileInputStream_8hpp-source.html">BinFileInputStream.hpp</a></ul>
306
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 18 07:56:10 2009 for Xerces-C++ by
307
<a href="http://www.doxygen.org/index.html">
308
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address>