<li><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ulclass="inheritance">
<li>com.mxgraph.util.mxBase64</li>
</ul>
</li>
</ul>
<divclass="description">
<ulclass="blockList">
<liclass="blockList">
<hr>
<br>
<pre>public class <spanclass="strong">mxBase64</span>
extends <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></pre>
<divclass="block">A very fast and memory efficient class to encode and decode to and from BASE64 in full accordance
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/util/mxBase64.html#decode(java.lang.String)">decode</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> str)</code>
<divclass="block">Decodes a BASE64 encoded <code>String</code>.</div>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/util/mxBase64.html#decodeFast(java.lang.String)">decodeFast</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> s)</code>
<divclass="block">Decodes a BASE64 encoded string that is known to be resonably well formatted.</div>
<divclass="block">Encodes a raw byte array into a BASE64 <code>char[]</code> representation i accordance with RFC 2045.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>static <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a></code></td>
<h3>Methods inherited from class java.lang.<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></h3>
<code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</a></code></li>
<divclass="block">Encodes a raw byte array into a BASE64 <code>char[]</code> representation i accordance with RFC 2045.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sArr</code> - The bytes to convert. If <code>null</code> or length 0 an empty array will be returned.</dd><dd><code>lineSep</code> - Optional "\r\n" after 76 characters, unless end of file.<br>
<divclass="block">Decodes a BASE64 encoded char array. All illegal characters will be ignored and can handle both arrays with
and without line separators.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sArr</code> - The source array. <code>null</code> or length 0 will return an empty array.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The decoded array of bytes. May be of length 0. Will be <code>null</code> if the legal characters
(including '=') isn't divideable by 4. (I.e. definitely corrupted).</dd></dl>
+ The array CAN have illegal characters at the beginning and end, those will be dealt with appropriately.<br></div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sArr</code> - The source array. Length 0 will return an empty array. <code>null</code> will throw an exception.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The decoded array of bytes. May be of length 0.</dd></dl>
<divclass="block">Encodes a raw byte array into a BASE64 <code>byte[]</code> representation i accordance with RFC 2045.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sArr</code> - The bytes to convert. If <code>null</code> or length 0 an empty array will be returned.</dd><dd><code>lineSep</code> - Optional "\r\n" after 76 characters, unless end of file.<br>
<divclass="block">Decodes a BASE64 encoded byte array. All illegal characters will be ignored and can handle both arrays with
and without line separators.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sArr</code> - The source array. Length 0 will return an empty array. <code>null</code> will throw an exception.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The decoded array of bytes. May be of length 0. Will be <code>null</code> if the legal characters
(including '=') isn't divideable by 4. (I.e. definitely corrupted).</dd></dl>
+ The array CAN have illegal characters at the beginning and end, those will be dealt with appropriately.<br></div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sArr</code> - The source array. Length 0 will return an empty array. <code>null</code> will throw an exception.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The decoded array of bytes. May be of length 0.</dd></dl>
</li>
</ul>
<aname="encodeToString(byte[], boolean)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>encodeToString</h4>
<pre>public static final <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> encodeToString(byte[] sArr,
boolean lineSep)</pre>
<divclass="block">Encodes a raw byte array into a BASE64 <code>String</code> representation i accordance with RFC 2045.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sArr</code> - The bytes to convert. If <code>null</code> or length 0 an empty array will be returned.</dd><dd><code>lineSep</code> - Optional "\r\n" after 76 characters, unless end of file.<br>
<dt><spanclass="strong">Returns:</span></dt><dd>A BASE64 encoded array. Never <code>null</code>.</dd></dl>
</li>
</ul>
<aname="decode(java.lang.String)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>decode</h4>
<pre>public static final byte[] decode(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> str)</pre>
<divclass="block">Decodes a BASE64 encoded <code>String</code>. All illegal characters will be ignored and can handle both strings with
will create a temporary array though. This version will use <code>str.charAt(i)</code> to iterate the string.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>str</code> - The source string. <code>null</code> or length 0 will return an empty array.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The decoded array of bytes. May be of length 0. Will be <code>null</code> if the legal characters
(including '=') isn't divideable by 4. (I.e. definitely corrupted).</dd></dl>
</li>
</ul>
<aname="decodeFast(java.lang.String)">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>decodeFast</h4>
<pre>public static final byte[] decodeFast(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> s)</pre>
<divclass="block">Decodes a BASE64 encoded string that is known to be resonably well formatted. The method is about twice as
fast as <ahref="../../../com/mxgraph/util/mxBase64.html#decode(java.lang.String)"><code>decode(String)</code></a>. The preconditions are:<br>
+ The array CAN have illegal characters at the beginning and end, those will be dealt with appropriately.<br></div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>s</code> - The source string. Length 0 will return an empty array. <code>null</code> will throw an exception.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The decoded array of bytes. May be of length 0.</dd></dl>