source: NonGTP/Xerces/xerces/doc/html/apiDocs/classBase64.html @ 358

Revision 358, 28.1 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1<HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>Base64 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">&nbsp;</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> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
44<hr><h1>Base64  Class Reference</h1><a href="classBase64-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
45<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
46<tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="classBase64.html#s2">Conformance</a> { <a class="el" href="classBase64.html#s2s0">Conf_RFC2045</a>,
47<a class="el" href="classBase64.html#s2s1">Conf_Schema</a>
48 }</td></tr>
49<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr>
50<tr><td nowrap align=right valign=top>XMLCh *&nbsp;</td><td valign=bottom><a class="el" href="classBase64.html#d0">getCanonicalRepresentation</a> (const XMLCh *const inputData, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const memMgr=0, <a class="el" href="classBase64.html#s2">Conformance</a> conform=Conf_RFC2045)</td></tr>
51<tr><td>&nbsp;</td><td><font size=-1><em>get canonical representation.</em> <a href="#d0">More...</a><em></em></font><br><br></td></tr>
52<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
53<tr><td nowrap align=right valign=top><a class="el" href="XercesDefs_8hpp.html#a16">XMLByte</a> *&nbsp;</td><td valign=bottom><a class="el" href="classBase64.html#z481_0">encode</a> (const <a class="el" href="XercesDefs_8hpp.html#a16">XMLByte</a> *const inputData, const unsigned int inputLength, unsigned int *outputLength, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const memMgr=0)</td></tr>
54<tr><td>&nbsp;</td><td><font size=-1><em>Encodes octets into Base64 data.</em> <a href="#z481_0">More...</a><em></em></font><br><br></td></tr>
55<tr><td nowrap align=right valign=top><a class="el" href="XercesDefs_8hpp.html#a16">XMLByte</a> *&nbsp;</td><td valign=bottom><a class="el" href="classBase64.html#z481_1">decode</a> (const <a class="el" href="XercesDefs_8hpp.html#a16">XMLByte</a> *const inputData, unsigned int *decodedLength, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const memMgr=0, <a class="el" href="classBase64.html#s2">Conformance</a> conform=Conf_RFC2045)</td></tr>
56<tr><td>&nbsp;</td><td><font size=-1><em>Decodes Base64 data into octets.</em> <a href="#z481_1">More...</a><em></em></font><br><br></td></tr>
57<tr><td nowrap align=right valign=top>XMLCh *&nbsp;</td><td valign=bottom><a class="el" href="classBase64.html#z481_2">decode</a> (const XMLCh *const inputData, unsigned int *decodedLength, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const memMgr=0, <a class="el" href="classBase64.html#s2">Conformance</a> conform=Conf_RFC2045)</td></tr>
58<tr><td>&nbsp;</td><td><font size=-1><em>Decodes Base64 data into XMLCh.</em> <a href="#z481_2">More...</a><em></em></font><br><br></td></tr>
59<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classBase64.html#z481_3">getDataLength</a> (const XMLCh *const inputData, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const memMgr=0, <a class="el" href="classBase64.html#s2">Conformance</a> conform=Conf_RFC2045)</td></tr>
60<tr><td>&nbsp;</td><td><font size=-1><em>Get data length.</em> <a href="#z481_3">More...</a><em></em></font><br><br></td></tr>
61</table>
62<hr><h2>Member Enumeration Documentation</h2>
63<a name="s2" doxytag="Base64::Conformance"></a><p>
64<table width="100%" cellpadding="2" cellspacing="0" border="0">
65  <tr>
66    <td class="md">
67      <table cellpadding="0" cellspacing="0" border="0">
68        <tr>
69          <td class="md" nowrap valign="top"> enum Base64::Conformance
70      </table>
71    </td>
72  </tr>
73</table>
74<table cellspacing=5 cellpadding=0 border=0>
75  <tr>
76    <td>
77      &nbsp;
78    </td>
79    <td>
80
81<p>
82<dl compact><dt><b>
83Enumeration values:</b><dd>
84<table border=0 cellspacing=2 cellpadding=0>
85<tr><td valign=top><em><a name="s2s0" doxytag="Conf_RFC2045"></a><em>Conf_RFC2045</em></em>&nbsp;</td><td>
86</td></tr>
87<tr><td valign=top><em><a name="s2s1" doxytag="Conf_Schema"></a><em>Conf_Schema</em></em>&nbsp;</td><td>
88</td></tr>
89</table>
90</dl>
91    </td>
92  </tr>
93</table>
94<hr><h2>Member Function Documentation</h2>
95<a name="z481_2" doxytag="Base64::decode"></a><p>
96<table width="100%" cellpadding="2" cellspacing="0" border="0">
97  <tr>
98    <td class="md">
99      <table cellpadding="0" cellspacing="0" border="0">
100        <tr>
101          <td class="md" nowrap valign="top"> XMLCh* Base64::decode </td>
102          <td class="md" valign="top">(&nbsp;</td>
103          <td class="md" nowrap valign="top">const XMLCh *const&nbsp;</td>
104          <td class="mdname" nowrap>&nbsp; <em>inputData</em>, </td>
105        </tr>
106        <tr>
107          <td></td>
108          <td></td>
109          <td class="md" nowrap>unsigned int *&nbsp;</td>
110          <td class="mdname" nowrap>&nbsp; <em>decodedLength</em>, </td>
111        </tr>
112        <tr>
113          <td></td>
114          <td></td>
115          <td class="md" nowrap><a class="el" href="classMemoryManager.html">MemoryManager</a> *const&nbsp;</td>
116          <td class="mdname" nowrap>&nbsp; <em>memMgr</em> = 0, </td>
117        </tr>
118        <tr>
119          <td></td>
120          <td></td>
121          <td class="md" nowrap><a class="el" href="classBase64.html#s2">Conformance</a>&nbsp;</td>
122          <td class="mdname" nowrap>&nbsp; <em>conform</em> = Conf_RFC2045</td>
123        </tr>
124        <tr>
125          <td></td>
126          <td class="md">)&nbsp;</td>
127          <td class="md" colspan="2"><code> [static]</code></td>
128        </tr>
129
130      </table>
131    </td>
132  </tr>
133</table>
134<table cellspacing=5 cellpadding=0 border=0>
135  <tr>
136    <td>
137      &nbsp;
138    </td>
139    <td>
140
141<p>
142Decodes Base64 data into XMLCh.
143<p>
144NOTE: The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. You can call <a class="el" href="classXMLString.html#z522_0">XMLString::release</a> to release this returned buffer.
145<p>
146If a memory manager is provided, ask the memory manager to de-allocate the returned buffer.<dl compact><dt><b>
147Parameters: </b><dd>
148<table border=0 cellspacing=2 cellpadding=0>
149<tr><td valign=top><em>inputData</em>&nbsp;</td><td>
150Base64 data in XMLCh stream. </td></tr>
151<tr><td valign=top><em>decodedLength</em>&nbsp;</td><td>
152Length of decoded XMLCh stream </td></tr>
153<tr><td valign=top><em>memMgr</em>&nbsp;</td><td>
154client provided memory manager </td></tr>
155<tr><td valign=top><em>conform</em>&nbsp;</td><td>
156conformance specified </td></tr>
157</table>
158</dl><dl compact><dt><b>
159Returns: </b><dd>
160Decoded binary data in XMLCh stream, or NULL if input data can not be decoded. </dl><dl compact><dt><b>
161See also: </b><dd>
162<a class="el" href="classXMLString.html#z522_1">XMLString::release</a>(XMLCh**) </dl>    </td>
163  </tr>
164</table>
165<a name="z481_1" doxytag="Base64::decode"></a><p>
166<table width="100%" cellpadding="2" cellspacing="0" border="0">
167  <tr>
168    <td class="md">
169      <table cellpadding="0" cellspacing="0" border="0">
170        <tr>
171          <td class="md" nowrap valign="top"> <a class="el" href="XercesDefs_8hpp.html#a16">XMLByte</a>* Base64::decode </td>
172          <td class="md" valign="top">(&nbsp;</td>
173          <td class="md" nowrap valign="top">const <a class="el" href="XercesDefs_8hpp.html#a16">XMLByte</a> *const&nbsp;</td>
174          <td class="mdname" nowrap>&nbsp; <em>inputData</em>, </td>
175        </tr>
176        <tr>
177          <td></td>
178          <td></td>
179          <td class="md" nowrap>unsigned int *&nbsp;</td>
180          <td class="mdname" nowrap>&nbsp; <em>decodedLength</em>, </td>
181        </tr>
182        <tr>
183          <td></td>
184          <td></td>
185          <td class="md" nowrap><a class="el" href="classMemoryManager.html">MemoryManager</a> *const&nbsp;</td>
186          <td class="mdname" nowrap>&nbsp; <em>memMgr</em> = 0, </td>
187        </tr>
188        <tr>
189          <td></td>
190          <td></td>
191          <td class="md" nowrap><a class="el" href="classBase64.html#s2">Conformance</a>&nbsp;</td>
192          <td class="mdname" nowrap>&nbsp; <em>conform</em> = Conf_RFC2045</td>
193        </tr>
194        <tr>
195          <td></td>
196          <td class="md">)&nbsp;</td>
197          <td class="md" colspan="2"><code> [static]</code></td>
198        </tr>
199
200      </table>
201    </td>
202  </tr>
203</table>
204<table cellspacing=5 cellpadding=0 border=0>
205  <tr>
206    <td>
207      &nbsp;
208    </td>
209    <td>
210
211<p>
212Decodes Base64 data into octets.
213<p>
214NOTE: The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. You can call <a class="el" href="classXMLString.html#z522_0">XMLString::release</a> to release this returned buffer.
215<p>
216If a memory manager is provided, ask the memory manager to de-allocate the returned buffer.<dl compact><dt><b>
217Parameters: </b><dd>
218<table border=0 cellspacing=2 cellpadding=0>
219<tr><td valign=top><em>inputData</em>&nbsp;</td><td>
220Base64 data in XMLByte stream. </td></tr>
221<tr><td valign=top><em>decodedLength</em>&nbsp;</td><td>
222Length of decoded XMLByte stream. </td></tr>
223<tr><td valign=top><em>memMgr</em>&nbsp;</td><td>
224client provided memory manager </td></tr>
225<tr><td valign=top><em>conform</em>&nbsp;</td><td>
226conformance specified </td></tr>
227</table>
228</dl><dl compact><dt><b>
229Returns: </b><dd>
230Decoded binary data in XMLByte stream, or NULL if input data can not be decoded. </dl><dl compact><dt><b>
231See also: </b><dd>
232<a class="el" href="classXMLString.html#z522_2">XMLString::release</a>(XMLByte**) </dl>    </td>
233  </tr>
234</table>
235<a name="z481_0" doxytag="Base64::encode"></a><p>
236<table width="100%" cellpadding="2" cellspacing="0" border="0">
237  <tr>
238    <td class="md">
239      <table cellpadding="0" cellspacing="0" border="0">
240        <tr>
241          <td class="md" nowrap valign="top"> <a class="el" href="XercesDefs_8hpp.html#a16">XMLByte</a>* Base64::encode </td>
242          <td class="md" valign="top">(&nbsp;</td>
243          <td class="md" nowrap valign="top">const <a class="el" href="XercesDefs_8hpp.html#a16">XMLByte</a> *const&nbsp;</td>
244          <td class="mdname" nowrap>&nbsp; <em>inputData</em>, </td>
245        </tr>
246        <tr>
247          <td></td>
248          <td></td>
249          <td class="md" nowrap>const unsigned int&nbsp;</td>
250          <td class="mdname" nowrap>&nbsp; <em>inputLength</em>, </td>
251        </tr>
252        <tr>
253          <td></td>
254          <td></td>
255          <td class="md" nowrap>unsigned int *&nbsp;</td>
256          <td class="mdname" nowrap>&nbsp; <em>outputLength</em>, </td>
257        </tr>
258        <tr>
259          <td></td>
260          <td></td>
261          <td class="md" nowrap><a class="el" href="classMemoryManager.html">MemoryManager</a> *const&nbsp;</td>
262          <td class="mdname" nowrap>&nbsp; <em>memMgr</em> = 0</td>
263        </tr>
264        <tr>
265          <td></td>
266          <td class="md">)&nbsp;</td>
267          <td class="md" colspan="2"><code> [static]</code></td>
268        </tr>
269
270      </table>
271    </td>
272  </tr>
273</table>
274<table cellspacing=5 cellpadding=0 border=0>
275  <tr>
276    <td>
277      &nbsp;
278    </td>
279    <td>
280
281<p>
282Encodes octets into Base64 data.
283<p>
284NOTE: The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. You can call <a class="el" href="classXMLString.html#z522_0">XMLString::release</a> to release this returned buffer.
285<p>
286If a memory manager is provided, ask the memory manager to de-allocate the returned buffer.<dl compact><dt><b>
287Parameters: </b><dd>
288<table border=0 cellspacing=2 cellpadding=0>
289<tr><td valign=top><em>inputData</em>&nbsp;</td><td>
290Binary data in XMLByte stream. </td></tr>
291<tr><td valign=top><em>inputLength</em>&nbsp;</td><td>
292Length of the XMLByte stream. </td></tr>
293<tr><td valign=top><em>outputLength</em>&nbsp;</td><td>
294Length of the encoded Base64 byte stream. </td></tr>
295<tr><td valign=top><em>memMgr</em>&nbsp;</td><td>
296client provided memory manager </td></tr>
297</table>
298</dl><dl compact><dt><b>
299Returns: </b><dd>
300Encoded Base64 data in XMLByte stream, or NULL if input data can not be encoded. </dl><dl compact><dt><b>
301See also: </b><dd>
302<a class="el" href="classXMLString.html#z522_2">XMLString::release</a>(XMLByte**) </dl>    </td>
303  </tr>
304</table>
305<a name="d0" doxytag="Base64::getCanonicalRepresentation"></a><p>
306<table width="100%" cellpadding="2" cellspacing="0" border="0">
307  <tr>
308    <td class="md">
309      <table cellpadding="0" cellspacing="0" border="0">
310        <tr>
311          <td class="md" nowrap valign="top"> XMLCh* Base64::getCanonicalRepresentation </td>
312          <td class="md" valign="top">(&nbsp;</td>
313          <td class="md" nowrap valign="top">const XMLCh *const&nbsp;</td>
314          <td class="mdname" nowrap>&nbsp; <em>inputData</em>, </td>
315        </tr>
316        <tr>
317          <td></td>
318          <td></td>
319          <td class="md" nowrap><a class="el" href="classMemoryManager.html">MemoryManager</a> *const&nbsp;</td>
320          <td class="mdname" nowrap>&nbsp; <em>memMgr</em> = 0, </td>
321        </tr>
322        <tr>
323          <td></td>
324          <td></td>
325          <td class="md" nowrap><a class="el" href="classBase64.html#s2">Conformance</a>&nbsp;</td>
326          <td class="mdname" nowrap>&nbsp; <em>conform</em> = Conf_RFC2045</td>
327        </tr>
328        <tr>
329          <td></td>
330          <td class="md">)&nbsp;</td>
331          <td class="md" colspan="2"><code> [static]</code></td>
332        </tr>
333
334      </table>
335    </td>
336  </tr>
337</table>
338<table cellspacing=5 cellpadding=0 border=0>
339  <tr>
340    <td>
341      &nbsp;
342    </td>
343    <td>
344
345<p>
346get canonical representation.
347<p>
348Caller is responsible for the proper deallcation of the string returned.<dl compact><dt><b>
349Parameters: </b><dd>
350<table border=0 cellspacing=2 cellpadding=0>
351<tr><td valign=top><em>inputData</em>&nbsp;</td><td>
352A string containing the Base64 </td></tr>
353<tr><td valign=top><em>memMgr</em>&nbsp;</td><td>
354client provided memory manager </td></tr>
355<tr><td valign=top><em>conform</em>&nbsp;</td><td>
356conformance specified</td></tr>
357</table>
358</dl>return: the canonical representation of the Base64 if it is a valid Base64 0 otherwise     </td>
359  </tr>
360</table>
361<a name="z481_3" doxytag="Base64::getDataLength"></a><p>
362<table width="100%" cellpadding="2" cellspacing="0" border="0">
363  <tr>
364    <td class="md">
365      <table cellpadding="0" cellspacing="0" border="0">
366        <tr>
367          <td class="md" nowrap valign="top"> int Base64::getDataLength </td>
368          <td class="md" valign="top">(&nbsp;</td>
369          <td class="md" nowrap valign="top">const XMLCh *const&nbsp;</td>
370          <td class="mdname" nowrap>&nbsp; <em>inputData</em>, </td>
371        </tr>
372        <tr>
373          <td></td>
374          <td></td>
375          <td class="md" nowrap><a class="el" href="classMemoryManager.html">MemoryManager</a> *const&nbsp;</td>
376          <td class="mdname" nowrap>&nbsp; <em>memMgr</em> = 0, </td>
377        </tr>
378        <tr>
379          <td></td>
380          <td></td>
381          <td class="md" nowrap><a class="el" href="classBase64.html#s2">Conformance</a>&nbsp;</td>
382          <td class="mdname" nowrap>&nbsp; <em>conform</em> = Conf_RFC2045</td>
383        </tr>
384        <tr>
385          <td></td>
386          <td class="md">)&nbsp;</td>
387          <td class="md" colspan="2"><code> [static]</code></td>
388        </tr>
389
390      </table>
391    </td>
392  </tr>
393</table>
394<table cellspacing=5 cellpadding=0 border=0>
395  <tr>
396    <td>
397      &nbsp;
398    </td>
399    <td>
400
401<p>
402Get data length.
403<p>
404Returns length of decoded data given an array containing encoded data.<dl compact><dt><b>
405Parameters: </b><dd>
406<table border=0 cellspacing=2 cellpadding=0>
407<tr><td valign=top><em>inputData</em>&nbsp;</td><td>
408Base64 data in XMLCh stream. </td></tr>
409<tr><td valign=top><em>memMgr</em>&nbsp;</td><td>
410client provided memory manager </td></tr>
411<tr><td valign=top><em>conform</em>&nbsp;</td><td>
412conformance specified </td></tr>
413</table>
414</dl><dl compact><dt><b>
415Returns: </b><dd>
416Length of decoded data, or -1 if input data can not be decoded. </dl>    </td>
417  </tr>
418</table>
419<hr>The documentation for this class was generated from the following file:<ul>
420<li><a class="el" href="Base64_8hpp-source.html">Base64.hpp</a></ul>
421    </FONT></TD></TR></TABLE><BR>
422</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>
423              Copyright &copy; 1994-2004 The Apache Software Foundation.
424              All Rights Reserved.
425            </I></FONT></TD></TR></TABLE></BODY></HTML>
Note: See TracBrowser for help on using the repository browser.