Modified:
websites/production/commons/content/proper/commons-codec/userguide.html
==============================================================================
--- websites/production/commons/content/proper/commons-codec/userguide.html
(original)
+++ websites/production/commons/content/proper/commons-codec/userguide.html Wed
Dec 11 04:34:40 2013
@@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!-- Generated by Apache Maven Doxia at May 2, 2013 ( $Revision: 1080083 $ )
-->
+<!-- Generated by Apache Maven Doxia at 10 December 2013 ( $Revision: 1080083
$ ) -->
<!-- $HeadURL:
https://svn.apache.org/repos/asf/commons/proper/commons-skin/trunk/src/main/resources/META-INF/maven/site.vm
$ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@@ -13,7 +13,7 @@
</style>
<link rel="stylesheet" href="./css/print.css" type="text/css"
media="print" />
<meta name="author" content="Commons Documentation Team" />
- <meta name="Date-Revision-yyyymmdd" content="20130502" />
+ <meta name="Date-Revision-yyyymmdd" content="20131210" />
<meta http-equiv="Content-Language" content="en" />
<link rel="stylesheet" type="text/css" media="all" href="./css/prettify.css"/>
@@ -42,7 +42,7 @@
<div class="xleft">
- <span id="publishDate">Last Published: 02 May 2013</span>
+ <span id="publishDate">Last Published: 10 December 2013</span>
| <span id="projectVersion">Version:
1.9-SNAPSHOT</span>
</div>
<div class="xright"> <a
href="http://www.apachecon.com/" class="externalLink"
title="ApacheCon">ApacheCon</a>
@@ -73,7 +73,16 @@
<strong>Users guide</strong>
</li>
<li class="none">
- <a href="javadocs/api-release/index.html"
title="Javadoc v1.7">Javadoc v1.7</a>
+ <a href="apidocs/index.html" title="Javadoc
trunk">Javadoc trunk</a>
+ </li>
+ <li class="none">
+ <a href="archives/1.9/apidocs/index.html"
title="Javadoc 1.9">Javadoc 1.9</a>
+ </li>
+ <li class="none">
+ <a href="archives/1.8/apidocs/index.html"
title="Javadoc 1.8">Javadoc 1.8</a>
+ </li>
+ <li class="none">
+ <a href="archives/1.7/apidocs/index.html"
title="Javadoc 1.7">Javadoc 1.7</a>
</li>
</ul>
<h5>Development</h5>
@@ -91,7 +100,19 @@
<a href="source-repository.html" title="Source
Repository">Source Repository</a>
</li>
<li class="none">
- <a href="apidocs/index.html" title="Javadoc SVN
latest">Javadoc SVN latest</a>
+ <a href="apidocs/index.html" title="Javadoc
trunk">Javadoc trunk</a>
+ </li>
+ </ul>
+ <h5>Site Archives</h5>
+ <ul>
+ <li class="none">
+ <a href="archives/1.9/index.html" title="Codec
1.9">Codec 1.9</a>
+ </li>
+ <li class="none">
+ <a href="archives/1.8/index.html" title="Codec
1.8">Codec 1.8</a>
+ </li>
+ <li class="none">
+ <a href="archives/1.7/index.html" title="Codec
1.7">Codec 1.7</a>
</li>
</ul>
<h5>Project Documentation</h5>
@@ -99,7 +120,7 @@
<li class="collapsed">
<a href="project-info.html" title="Project
Information">Project Information</a>
</li>
-
<li class="collapsed">
+
<li class="collapsed">
<a href="project-reports.html" title="Project
Reports">Project Reports</a>
</li>
</ul>
@@ -181,80 +202,110 @@
language governing permissions and limitations under the License. -->
<!-- ================================================== -->
- <div class="section"><h2>User guide<a name="User_guide"></a></h2>
- <p> Codec is comprised of a set of utilities and a simple
+ <div class="section">
+<h2>User guide<a name="User_guide"></a></h2>
+
+<p> Codec is comprised of a set of utilities and a simple
framework for encoding and decoding text and binary data.
</p>
- <div class="section"><h3>Binary Encoders<a
name="Binary_Encoders"></a></h3>
- <p>Interfaces and classes used by the various implementations in
+
+<div class="section">
+<h3>Binary Encoders<a name="Binary_Encoders"></a></h3>
+
+<p>Interfaces and classes used by the various implementations in
the sub-packages.
</p>
- <table border="0" class="bodyTable">
- <tr class="a">
- <td width="150">
+
+<table border="0" class="bodyTable">
+
+<tr class="a">
+
+<td width="150">
<a
href="apidocs/org/apache/commons/codec/binary/Base32.html">Base32
</a>
</td>
- <td>
+
+<td>
Provides Base32 encoding and decoding as defined by
<a class="externalLink"
href="http://www.ietf.org/rfc/rfc4648.txt">RFC 4648</a>
</td>
</tr>
- <tr class="b">
- <td width="150">
+
+<tr class="b">
+
+<td width="150">
<a
href="apidocs/org/apache/commons/codec/binary/Base32InputStream.html">Base32InputStream
</a>
</td>
- <td>Provides Base32 encoding and decoding in a streaming
+
+<td>Provides Base32 encoding and decoding in a streaming
fashion (unlimited size).
</td>
</tr>
- <tr class="a">
- <td width="150">
+
+<tr class="a">
+
+<td width="150">
<a href="apidocs/org/apache/commons/codec/binary/Base64.html">
Base64
</a>
</td>
- <td>
+
+<td>
Provides Base64 encoding and decoding as defined by
<a class="externalLink"
href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>
</td>
</tr>
- <tr class="b">
- <td width="150">
+
+<tr class="b">
+
+<td width="150">
<a
href="apidocs/org/apache/commons/codec/binary/Base64InputStream.html">Base64InputStream
</a>
</td>
- <td>Provides Base64 encoding and decoding in a streaming
+
+<td>Provides Base64 encoding and decoding in a streaming
fashion (unlimited size).
</td>
</tr>
- <tr class="a">
- <td width="150">
+
+<tr class="a">
+
+<td width="150">
<a
href="apidocs/org/apache/commons/codec/binary/BinaryCodec.html"> BinaryCodec
</a>
</td>
- <td>Converts between byte arrays and strings of "0"s and
+
+<td>Converts between byte arrays and strings of "0"s and
"1"s.
</td>
</tr>
- <tr class="b">
- <td>
+
+<tr class="b">
+
+<td>
<a href="apidocs/org/apache/commons/codec/binary/Hex.html"> Hex
</a>
</td>
- <td>Converts hexadecimal Strings.
+
+<td>Converts hexadecimal Strings.
</td>
</tr>
</table>
</div>
- <div class="section"><h3>Digest Encoders<a
name="Digest_Encoders"></a></h3>
- <table border="0" class="bodyTable">
- <tr class="a">
- <td width="150">
+
+<div class="section">
+<h3>Digest Encoders<a name="Digest_Encoders"></a></h3>
+
+<table border="0" class="bodyTable">
+
+<tr class="a">
+
+<td width="150">
<a
href="apidocs/org/apache/commons/codec/digest/DigestUtils.html">DigestUtils
</a>
</td>
- <td>
+
+<td>
Simplifies common
<a class="externalLink"
href="http://download.oracle.com/javase/6/docs/api/java/security/MessageDigest.html">MessageDigest</a>
tasks and provides GNU libc crypt(3) compatible password hashing
functions.
@@ -262,85 +313,118 @@
</tr>
</table>
</div>
- <div class="section"><h3>Language Encoders<a
name="Language_Encoders"></a></h3>
- <table border="0" class="bodyTable">
- <tr class="a">
- <td width="150">
+
+<div class="section">
+<h3>Language Encoders<a name="Language_Encoders"></a></h3>
+
+<table border="0" class="bodyTable">
+
+<tr class="a">
+
+<td width="150">
<a
href="apidocs/org/apache/commons/codec/language/Caverphone1.html">Caverphone 1.0
</a>
</td>
- <td>Encodes a string into a Caverphone 1.0 value.
+
+<td>Encodes a string into a Caverphone 1.0 value.
</td>
</tr>
- <tr class="b">
- <td width="150">
+
+<tr class="b">
+
+<td width="150">
<a
href="apidocs/org/apache/commons/codec/language/Caverphone2.html">Caverphone 2.0
</a>
</td>
- <td>Encodes a string into a Caverphone 2.0 value.
+
+<td>Encodes a string into a Caverphone 2.0 value.
</td>
</tr>
- <tr class="a">
- <td width="150">
+
+<tr class="a">
+
+<td width="150">
<a
href="apidocs/org/apache/commons/codec/language/ColognePhonetic.html">Cologne
Phonetic
</a>
</td>
- <td>Encodes a string into a Cologne Phonetic value.
+
+<td>Encodes a string into a Cologne Phonetic value.
</td>
</tr>
- <tr class="b">
- <td>
+
+<tr class="b">
+
+<td>
<a
href="apidocs/org/apache/commons/codec/language/DoubleMetaphone.html">Double
Metaphone
</a>
</td>
- <td>Encodes a string into a double metaphone value.
+
+<td>Encodes a string into a double metaphone value.
</td>
</tr>
- <tr class="a">
- <td>
+
+<tr class="a">
+
+<td>
<a
href="apidocs/org/apache/commons/codec/language/Metaphone.html">Metaphone
</a>
</td>
- <td>Encodes a string into a Metaphone value.
+
+<td>Encodes a string into a Metaphone value.
</td>
</tr>
- <tr class="b">
- <td>
+
+<tr class="b">
+
+<td>
<a
href="apidocs/org/apache/commons/codec/language/RefinedSoundex.html">Refined
Soundex
</a>
</td>
- <td>Encodes a string into a Refined Soundex value.
+
+<td>Encodes a string into a Refined Soundex value.
</td>
</tr>
- <tr class="a">
- <td width="150">
+
+<tr class="a">
+
+<td width="150">
<a
href="apidocs/org/apache/commons/codec/language/Soundex.html">Soundex
</a>
</td>
- <td>Encodes a string into a Soundex value.
+
+<td>Encodes a string into a Soundex value.
</td>
</tr>
</table>
</div>
- <div class="section"><h3>Network Encoders<a
name="Network_Encoders"></a></h3>
- <table border="0" class="bodyTable">
- <tr class="a">
- <td width="150">
+
+<div class="section">
+<h3>Network Encoders<a name="Network_Encoders"></a></h3>
+
+<table border="0" class="bodyTable">
+
+<tr class="a">
+
+<td width="150">
<a href="apidocs/org/apache/commons/codec/net/BCodec.html">
BCodec
</a>
</td>
- <td>
+
+<td>
Identical to the Base64 encoding defined by
<a class="externalLink"
href="http://www.ietf.org/rfc/rfc1521.txt">RFC 1521</a>
and allows a character set to be specified.
</td>
</tr>
- <tr class="b">
- <td width="150">
+
+<tr class="b">
+
+<td width="150">
<a href="apidocs/org/apache/commons/codec/net/QCodec.html">
QCodec
</a>
</td>
- <td>
+
+<td>
Similar to the Quoted-Printable content-transfer-encoding
defined in
<a class="externalLink"
href="http://www.ietf.org/rfc/rfc1521.txt">RFC 1521</a>
@@ -349,23 +433,29 @@
decoding.
</td>
</tr>
- <tr class="a">
- <td width="150">
+
+<tr class="a">
+
+<td width="150">
<a
href="apidocs/org/apache/commons/codec/net/QuotedPrintableCodec.html">
QuotedPrintableCodec
</a>
</td>
- <td>
+
+<td>
Codec for the Quoted-Printable section of
<a class="externalLink"
href="http://www.ietf.org/rfc/rfc1521.txt">RFC 1521</a>
.
</td>
</tr>
- <tr class="b">
- <td width="150">
+
+<tr class="b">
+
+<td width="150">
<a href="apidocs/org/apache/commons/codec/net/URLCodec.html">
URLCodec
</a>
</td>
- <td>
+
+<td>
Implements the
<tt>www-form-urlencoded</tt>
encoding scheme, also misleadingly known as URL encoding.
Modified:
websites/production/commons/content/proper/commons-codec/xref-test/allclasses-frame.html
==============================================================================
---
websites/production/commons/content/proper/commons-codec/xref-test/allclasses-frame.html
(original)
+++
websites/production/commons/content/proper/commons-codec/xref-test/allclasses-frame.html
Wed Dec 11 04:34:40 2013
@@ -60,6 +60,9 @@
<a
href="org/apache/commons/codec/BinaryEncoderAbstractTest.html"
target="classFrame">BinaryEncoderAbstractTest</a>
</li>
<li>
+ <a
href="org/apache/commons/codec/language/bm/CacheSubSequencePerformanceTest.html"
target="classFrame">CacheSubSequencePerformanceTest</a>
+ </li>
+ <li>
<a
href="org/apache/commons/codec/language/Caverphone1Test.html"
target="classFrame">Caverphone1Test</a>
</li>
<li>
@@ -117,6 +120,9 @@
<a
href="org/apache/commons/codec/language/NysiisTest.html"
target="classFrame">NysiisTest</a>
</li>
<li>
+ <a
href="org/apache/commons/codec/language/bm/PhoneticEnginePerformanceTest.html"
target="classFrame">PhoneticEnginePerformanceTest</a>
+ </li>
+ <li>
<a
href="org/apache/commons/codec/language/bm/PhoneticEngineRegressionTest.html"
target="classFrame">PhoneticEngineRegressionTest</a>
</li>
<li>
Modified:
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base32InputStreamTest.html
==============================================================================
---
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base32InputStreamTest.html
(original)
+++
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base32InputStreamTest.html
Wed Dec 11 04:34:40 2013
@@ -288,17 +288,17 @@
<a class="jxr_linenumber" name="278" href="#278">278</a> <em
class="jxr_javadoccomment"> * the data from above, but
decoded</em>
<a class="jxr_linenumber" name="279" href="#279">279</a> <em
class="jxr_javadoccomment"> * @param chunkSize</em>
<a class="jxr_linenumber" name="280" href="#280">280</a> <em
class="jxr_javadoccomment"> * chunk size (line-length) of the
base32 encoded data.</em>
-<a class="jxr_linenumber" name="281" href="#281">281</a> <em
class="jxr_javadoccomment"> * @param seperator</em>
+<a class="jxr_linenumber" name="281" href="#281">281</a> <em
class="jxr_javadoccomment"> * @param separator</em>
<a class="jxr_linenumber" name="282" href="#282">282</a> <em
class="jxr_javadoccomment"> * Line separator in the base32
encoded data.</em>
<a class="jxr_linenumber" name="283" href="#283">283</a> <em
class="jxr_javadoccomment"> * @throws Exception</em>
<a class="jxr_linenumber" name="284" href="#284">284</a> <em
class="jxr_javadoccomment"> * Usually signifies a bug in the
Base32 commons-codec implementation.</em>
<a class="jxr_linenumber" name="285" href="#285">285</a> <em
class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="286" href="#286">286</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByChunk(<strong class="jxr_keyword">final</strong> byte[] encoded, <strong
class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] seperator) <strong
class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="286" href="#286">286</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByChunk(<strong class="jxr_keyword">final</strong> byte[] encoded, <strong
class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] separator) <strong
class="jxr_keyword">throws</strong> Exception {
<a class="jxr_linenumber" name="287" href="#287">287</a>
<a class="jxr_linenumber" name="288" href="#288">288</a> <em
class="jxr_comment">// Start with encode.</em>
<a class="jxr_linenumber" name="289" href="#289">289</a> InputStream
in;
<a class="jxr_linenumber" name="290" href="#290">290</a>
-<a class="jxr_linenumber" name="291" href="#291">291</a> in = <strong
class="jxr_keyword">new</strong> Base32InputStream(<strong
class="jxr_keyword">new</strong> ByteArrayInputStream(decoded), <strong
class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="291" href="#291">291</a> in = <strong
class="jxr_keyword">new</strong> Base32InputStream(<strong
class="jxr_keyword">new</strong> ByteArrayInputStream(decoded), <strong
class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="292" href="#292">292</a> byte[] output
= Base32TestData.streamToBytes(in);
<a class="jxr_linenumber" name="293" href="#293">293</a>
<a class="jxr_linenumber" name="294" href="#294">294</a>
assertEquals(<span class="jxr_string">"EOF"</span>, -1, in.read());
@@ -316,7 +316,7 @@
<a class="jxr_linenumber" name="306" href="#306">306</a> <em
class="jxr_comment">// I always wanted to do this! (wrap encoder with decoder
etc etc).</em>
<a class="jxr_linenumber" name="307" href="#307">307</a> in = <strong
class="jxr_keyword">new</strong> ByteArrayInputStream(decoded);
<a class="jxr_linenumber" name="308" href="#308">308</a> <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i =
0; i < 10; i++) {
-<a class="jxr_linenumber" name="309" href="#309">309</a> in =
<strong class="jxr_keyword">new</strong> Base32InputStream(in, <strong
class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="309" href="#309">309</a> in =
<strong class="jxr_keyword">new</strong> Base32InputStream(in, <strong
class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="310" href="#310">310</a> in =
<strong class="jxr_keyword">new</strong> Base32InputStream(in, false);
<a class="jxr_linenumber" name="311" href="#311">311</a> }
<a class="jxr_linenumber" name="312" href="#312">312</a> output =
Base32TestData.streamToBytes(in);
@@ -340,16 +340,16 @@
<a class="jxr_linenumber" name="330" href="#330">330</a> <em
class="jxr_javadoccomment"> * the data from above, but
decoded</em>
<a class="jxr_linenumber" name="331" href="#331">331</a> <em
class="jxr_javadoccomment"> * @param chunkSize</em>
<a class="jxr_linenumber" name="332" href="#332">332</a> <em
class="jxr_javadoccomment"> * chunk size (line-length) of the
base32 encoded data.</em>
-<a class="jxr_linenumber" name="333" href="#333">333</a> <em
class="jxr_javadoccomment"> * @param seperator</em>
+<a class="jxr_linenumber" name="333" href="#333">333</a> <em
class="jxr_javadoccomment"> * @param separator</em>
<a class="jxr_linenumber" name="334" href="#334">334</a> <em
class="jxr_javadoccomment"> * Line separator in the base32
encoded data.</em>
<a class="jxr_linenumber" name="335" href="#335">335</a> <em
class="jxr_javadoccomment"> * @throws Exception</em>
<a class="jxr_linenumber" name="336" href="#336">336</a> <em
class="jxr_javadoccomment"> * Usually signifies a bug in the
Base32 commons-codec implementation.</em>
<a class="jxr_linenumber" name="337" href="#337">337</a> <em
class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="338" href="#338">338</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByteByByte(<strong class="jxr_keyword">final</strong> byte[] encoded,
<strong class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] seperator) <strong
class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="338" href="#338">338</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByteByByte(<strong class="jxr_keyword">final</strong> byte[] encoded,
<strong class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] separator) <strong
class="jxr_keyword">throws</strong> Exception {
<a class="jxr_linenumber" name="339" href="#339">339</a>
<a class="jxr_linenumber" name="340" href="#340">340</a> <em
class="jxr_comment">// Start with encode.</em>
<a class="jxr_linenumber" name="341" href="#341">341</a> InputStream
in;
-<a class="jxr_linenumber" name="342" href="#342">342</a> in = <strong
class="jxr_keyword">new</strong> Base32InputStream(<strong
class="jxr_keyword">new</strong> ByteArrayInputStream(decoded), <strong
class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="342" href="#342">342</a> in = <strong
class="jxr_keyword">new</strong> Base32InputStream(<strong
class="jxr_keyword">new</strong> ByteArrayInputStream(decoded), <strong
class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="343" href="#343">343</a> byte[] output
= <strong class="jxr_keyword">new</strong> byte[encoded.length];
<a class="jxr_linenumber" name="344" href="#344">344</a> <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i =
0; i < output.length; i++) {
<a class="jxr_linenumber" name="345" href="#345">345</a> output[i]
= (byte) in.read();
@@ -377,7 +377,7 @@
<a class="jxr_linenumber" name="367" href="#367">367</a> <em
class="jxr_comment">// I always wanted to do this! (wrap encoder with decoder
etc etc).</em>
<a class="jxr_linenumber" name="368" href="#368">368</a> in = <strong
class="jxr_keyword">new</strong> ByteArrayInputStream(decoded);
<a class="jxr_linenumber" name="369" href="#369">369</a> <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i =
0; i < 10; i++) {
-<a class="jxr_linenumber" name="370" href="#370">370</a> in =
<strong class="jxr_keyword">new</strong> Base32InputStream(in, <strong
class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="370" href="#370">370</a> in =
<strong class="jxr_keyword">new</strong> Base32InputStream(in, <strong
class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="371" href="#371">371</a> in =
<strong class="jxr_keyword">new</strong> Base32InputStream(in, false);
<a class="jxr_linenumber" name="372" href="#372">372</a> }
<a class="jxr_linenumber" name="373" href="#373">373</a> output =
<strong class="jxr_keyword">new</strong> byte[decoded.length];
Modified:
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base32OutputStreamTest.html
==============================================================================
---
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base32OutputStreamTest.html
(original)
+++
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base32OutputStreamTest.html
Wed Dec 11 04:34:40 2013
@@ -180,16 +180,16 @@
<a class="jxr_linenumber" name="170" href="#170">170</a> <em
class="jxr_javadoccomment"> * the data from above, but
decoded</em>
<a class="jxr_linenumber" name="171" href="#171">171</a> <em
class="jxr_javadoccomment"> * @param chunkSize</em>
<a class="jxr_linenumber" name="172" href="#172">172</a> <em
class="jxr_javadoccomment"> * chunk size (line-length) of the
Base32 encoded data.</em>
-<a class="jxr_linenumber" name="173" href="#173">173</a> <em
class="jxr_javadoccomment"> * @param seperator</em>
+<a class="jxr_linenumber" name="173" href="#173">173</a> <em
class="jxr_javadoccomment"> * @param separator</em>
<a class="jxr_linenumber" name="174" href="#174">174</a> <em
class="jxr_javadoccomment"> * Line separator in the Base32
encoded data.</em>
<a class="jxr_linenumber" name="175" href="#175">175</a> <em
class="jxr_javadoccomment"> * @throws Exception</em>
<a class="jxr_linenumber" name="176" href="#176">176</a> <em
class="jxr_javadoccomment"> * Usually signifies a bug in the
Base32 commons-codec implementation.</em>
<a class="jxr_linenumber" name="177" href="#177">177</a> <em
class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="178" href="#178">178</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByChunk(<strong class="jxr_keyword">final</strong> byte[] encoded, <strong
class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] seperator) <strong
class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="178" href="#178">178</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByChunk(<strong class="jxr_keyword">final</strong> byte[] encoded, <strong
class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] separator) <strong
class="jxr_keyword">throws</strong> Exception {
<a class="jxr_linenumber" name="179" href="#179">179</a>
<a class="jxr_linenumber" name="180" href="#180">180</a> <em
class="jxr_comment">// Start with encode.</em>
<a class="jxr_linenumber" name="181" href="#181">181</a>
ByteArrayOutputStream byteOut = <strong class="jxr_keyword">new</strong>
ByteArrayOutputStream();
-<a class="jxr_linenumber" name="182" href="#182">182</a> OutputStream
out = <strong class="jxr_keyword">new</strong> Base32OutputStream(byteOut,
<strong class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="182" href="#182">182</a> OutputStream
out = <strong class="jxr_keyword">new</strong> Base32OutputStream(byteOut,
<strong class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="183" href="#183">183</a>
out.write(decoded);
<a class="jxr_linenumber" name="184" href="#184">184</a> out.close();
<a class="jxr_linenumber" name="185" href="#185">185</a> byte[] output
= byteOut.toByteArray();
@@ -208,7 +208,7 @@
<a class="jxr_linenumber" name="198" href="#198">198</a> out = byteOut;
<a class="jxr_linenumber" name="199" href="#199">199</a> <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i =
0; i < 10; i++) {
<a class="jxr_linenumber" name="200" href="#200">200</a> out =
<strong class="jxr_keyword">new</strong> Base32OutputStream(out, false);
-<a class="jxr_linenumber" name="201" href="#201">201</a> out =
<strong class="jxr_keyword">new</strong> Base32OutputStream(out, <strong
class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="201" href="#201">201</a> out =
<strong class="jxr_keyword">new</strong> Base32OutputStream(out, <strong
class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="202" href="#202">202</a> }
<a class="jxr_linenumber" name="203" href="#203">203</a>
out.write(decoded);
<a class="jxr_linenumber" name="204" href="#204">204</a> out.close();
@@ -230,16 +230,16 @@
<a class="jxr_linenumber" name="220" href="#220">220</a> <em
class="jxr_javadoccomment"> * the data from above, but
decoded</em>
<a class="jxr_linenumber" name="221" href="#221">221</a> <em
class="jxr_javadoccomment"> * @param chunkSize</em>
<a class="jxr_linenumber" name="222" href="#222">222</a> <em
class="jxr_javadoccomment"> * chunk size (line-length) of the
Base32 encoded data.</em>
-<a class="jxr_linenumber" name="223" href="#223">223</a> <em
class="jxr_javadoccomment"> * @param seperator</em>
+<a class="jxr_linenumber" name="223" href="#223">223</a> <em
class="jxr_javadoccomment"> * @param separator</em>
<a class="jxr_linenumber" name="224" href="#224">224</a> <em
class="jxr_javadoccomment"> * Line separator in the Base32
encoded data.</em>
<a class="jxr_linenumber" name="225" href="#225">225</a> <em
class="jxr_javadoccomment"> * @throws Exception</em>
<a class="jxr_linenumber" name="226" href="#226">226</a> <em
class="jxr_javadoccomment"> * Usually signifies a bug in the
Base32 commons-codec implementation.</em>
<a class="jxr_linenumber" name="227" href="#227">227</a> <em
class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="228" href="#228">228</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByteByByte(<strong class="jxr_keyword">final</strong> byte[] encoded,
<strong class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] seperator) <strong
class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="228" href="#228">228</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByteByByte(<strong class="jxr_keyword">final</strong> byte[] encoded,
<strong class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] separator) <strong
class="jxr_keyword">throws</strong> Exception {
<a class="jxr_linenumber" name="229" href="#229">229</a>
<a class="jxr_linenumber" name="230" href="#230">230</a> <em
class="jxr_comment">// Start with encode.</em>
<a class="jxr_linenumber" name="231" href="#231">231</a>
ByteArrayOutputStream byteOut = <strong class="jxr_keyword">new</strong>
ByteArrayOutputStream();
-<a class="jxr_linenumber" name="232" href="#232">232</a> OutputStream
out = <strong class="jxr_keyword">new</strong> Base32OutputStream(byteOut,
<strong class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="232" href="#232">232</a> OutputStream
out = <strong class="jxr_keyword">new</strong> Base32OutputStream(byteOut,
<strong class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="233" href="#233">233</a> <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong>
byte element : decoded) {
<a class="jxr_linenumber" name="234" href="#234">234</a>
out.write(element);
<a class="jxr_linenumber" name="235" href="#235">235</a> }
@@ -273,7 +273,7 @@
<a class="jxr_linenumber" name="263" href="#263">263</a> out = byteOut;
<a class="jxr_linenumber" name="264" href="#264">264</a> <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i =
0; i < 10; i++) {
<a class="jxr_linenumber" name="265" href="#265">265</a> out =
<strong class="jxr_keyword">new</strong> Base32OutputStream(out, false);
-<a class="jxr_linenumber" name="266" href="#266">266</a> out =
<strong class="jxr_keyword">new</strong> Base32OutputStream(out, <strong
class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="266" href="#266">266</a> out =
<strong class="jxr_keyword">new</strong> Base32OutputStream(out, <strong
class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="267" href="#267">267</a> }
<a class="jxr_linenumber" name="268" href="#268">268</a> <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong>
byte element : decoded) {
<a class="jxr_linenumber" name="269" href="#269">269</a>
out.write(element);
Modified:
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base64InputStreamTest.html
==============================================================================
---
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base64InputStreamTest.html
(original)
+++
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base64InputStreamTest.html
Wed Dec 11 04:34:40 2013
@@ -301,16 +301,16 @@
<a class="jxr_linenumber" name="291" href="#291">291</a> <em
class="jxr_javadoccomment"> * the data from above, but
decoded</em>
<a class="jxr_linenumber" name="292" href="#292">292</a> <em
class="jxr_javadoccomment"> * @param chunkSize</em>
<a class="jxr_linenumber" name="293" href="#293">293</a> <em
class="jxr_javadoccomment"> * chunk size (line-length) of the
base64 encoded data.</em>
-<a class="jxr_linenumber" name="294" href="#294">294</a> <em
class="jxr_javadoccomment"> * @param seperator</em>
+<a class="jxr_linenumber" name="294" href="#294">294</a> <em
class="jxr_javadoccomment"> * @param separator</em>
<a class="jxr_linenumber" name="295" href="#295">295</a> <em
class="jxr_javadoccomment"> * Line separator in the base64
encoded data.</em>
<a class="jxr_linenumber" name="296" href="#296">296</a> <em
class="jxr_javadoccomment"> * @throws Exception</em>
<a class="jxr_linenumber" name="297" href="#297">297</a> <em
class="jxr_javadoccomment"> * Usually signifies a bug in the
Base64 commons-codec implementation.</em>
<a class="jxr_linenumber" name="298" href="#298">298</a> <em
class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="299" href="#299">299</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByChunk(<strong class="jxr_keyword">final</strong> byte[] encoded, <strong
class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] seperator) <strong
class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="299" href="#299">299</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByChunk(<strong class="jxr_keyword">final</strong> byte[] encoded, <strong
class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] separator) <strong
class="jxr_keyword">throws</strong> Exception {
<a class="jxr_linenumber" name="300" href="#300">300</a>
<a class="jxr_linenumber" name="301" href="#301">301</a> <em
class="jxr_comment">// Start with encode.</em>
<a class="jxr_linenumber" name="302" href="#302">302</a> InputStream
in;
-<a class="jxr_linenumber" name="303" href="#303">303</a> in = <strong
class="jxr_keyword">new</strong> Base64InputStream(<strong
class="jxr_keyword">new</strong> ByteArrayInputStream(decoded), <strong
class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="303" href="#303">303</a> in = <strong
class="jxr_keyword">new</strong> Base64InputStream(<strong
class="jxr_keyword">new</strong> ByteArrayInputStream(decoded), <strong
class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="304" href="#304">304</a> byte[] output
= Base64TestData.streamToBytes(in);
<a class="jxr_linenumber" name="305" href="#305">305</a>
<a class="jxr_linenumber" name="306" href="#306">306</a>
assertEquals(<span class="jxr_string">"EOF"</span>, -1, in.read());
@@ -330,7 +330,7 @@
<a class="jxr_linenumber" name="320" href="#320">320</a> <em
class="jxr_comment">// I always wanted to do this! (wrap encoder with decoder
etc etc).</em>
<a class="jxr_linenumber" name="321" href="#321">321</a> in = <strong
class="jxr_keyword">new</strong> ByteArrayInputStream(decoded);
<a class="jxr_linenumber" name="322" href="#322">322</a> <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i =
0; i < 10; i++) {
-<a class="jxr_linenumber" name="323" href="#323">323</a> in =
<strong class="jxr_keyword">new</strong> Base64InputStream(in, <strong
class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="323" href="#323">323</a> in =
<strong class="jxr_keyword">new</strong> Base64InputStream(in, <strong
class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="324" href="#324">324</a> in =
<strong class="jxr_keyword">new</strong> Base64InputStream(in, false);
<a class="jxr_linenumber" name="325" href="#325">325</a> }
<a class="jxr_linenumber" name="326" href="#326">326</a> output =
Base64TestData.streamToBytes(in);
@@ -354,16 +354,16 @@
<a class="jxr_linenumber" name="344" href="#344">344</a> <em
class="jxr_javadoccomment"> * the data from above, but
decoded</em>
<a class="jxr_linenumber" name="345" href="#345">345</a> <em
class="jxr_javadoccomment"> * @param chunkSize</em>
<a class="jxr_linenumber" name="346" href="#346">346</a> <em
class="jxr_javadoccomment"> * chunk size (line-length) of the
base64 encoded data.</em>
-<a class="jxr_linenumber" name="347" href="#347">347</a> <em
class="jxr_javadoccomment"> * @param seperator</em>
+<a class="jxr_linenumber" name="347" href="#347">347</a> <em
class="jxr_javadoccomment"> * @param separator</em>
<a class="jxr_linenumber" name="348" href="#348">348</a> <em
class="jxr_javadoccomment"> * Line separator in the base64
encoded data.</em>
<a class="jxr_linenumber" name="349" href="#349">349</a> <em
class="jxr_javadoccomment"> * @throws Exception</em>
<a class="jxr_linenumber" name="350" href="#350">350</a> <em
class="jxr_javadoccomment"> * Usually signifies a bug in the
Base64 commons-codec implementation.</em>
<a class="jxr_linenumber" name="351" href="#351">351</a> <em
class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="352" href="#352">352</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByteByByte(<strong class="jxr_keyword">final</strong> byte[] encoded,
<strong class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] seperator) <strong
class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="352" href="#352">352</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByteByByte(<strong class="jxr_keyword">final</strong> byte[] encoded,
<strong class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] separator) <strong
class="jxr_keyword">throws</strong> Exception {
<a class="jxr_linenumber" name="353" href="#353">353</a>
<a class="jxr_linenumber" name="354" href="#354">354</a> <em
class="jxr_comment">// Start with encode.</em>
<a class="jxr_linenumber" name="355" href="#355">355</a> InputStream
in;
-<a class="jxr_linenumber" name="356" href="#356">356</a> in = <strong
class="jxr_keyword">new</strong> Base64InputStream(<strong
class="jxr_keyword">new</strong> ByteArrayInputStream(decoded), <strong
class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="356" href="#356">356</a> in = <strong
class="jxr_keyword">new</strong> Base64InputStream(<strong
class="jxr_keyword">new</strong> ByteArrayInputStream(decoded), <strong
class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="357" href="#357">357</a> byte[] output
= <strong class="jxr_keyword">new</strong> byte[encoded.length];
<a class="jxr_linenumber" name="358" href="#358">358</a> <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i =
0; i < output.length; i++) {
<a class="jxr_linenumber" name="359" href="#359">359</a> output[i]
= (byte) in.read();
@@ -390,7 +390,7 @@
<a class="jxr_linenumber" name="380" href="#380">380</a> <em
class="jxr_comment">// I always wanted to do this! (wrap encoder with decoder
etc etc).</em>
<a class="jxr_linenumber" name="381" href="#381">381</a> in = <strong
class="jxr_keyword">new</strong> ByteArrayInputStream(decoded);
<a class="jxr_linenumber" name="382" href="#382">382</a> <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i =
0; i < 10; i++) {
-<a class="jxr_linenumber" name="383" href="#383">383</a> in =
<strong class="jxr_keyword">new</strong> Base64InputStream(in, <strong
class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="383" href="#383">383</a> in =
<strong class="jxr_keyword">new</strong> Base64InputStream(in, <strong
class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="384" href="#384">384</a> in =
<strong class="jxr_keyword">new</strong> Base64InputStream(in, false);
<a class="jxr_linenumber" name="385" href="#385">385</a> }
<a class="jxr_linenumber" name="386" href="#386">386</a> output =
<strong class="jxr_keyword">new</strong> byte[decoded.length];
Modified:
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base64OutputStreamTest.html
==============================================================================
---
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base64OutputStreamTest.html
(original)
+++
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base64OutputStreamTest.html
Wed Dec 11 04:34:40 2013
@@ -191,16 +191,16 @@
<a class="jxr_linenumber" name="181" href="#181">181</a> <em
class="jxr_javadoccomment"> * the data from above, but
decoded</em>
<a class="jxr_linenumber" name="182" href="#182">182</a> <em
class="jxr_javadoccomment"> * @param chunkSize</em>
<a class="jxr_linenumber" name="183" href="#183">183</a> <em
class="jxr_javadoccomment"> * chunk size (line-length) of the
base64 encoded data.</em>
-<a class="jxr_linenumber" name="184" href="#184">184</a> <em
class="jxr_javadoccomment"> * @param seperator</em>
+<a class="jxr_linenumber" name="184" href="#184">184</a> <em
class="jxr_javadoccomment"> * @param separator</em>
<a class="jxr_linenumber" name="185" href="#185">185</a> <em
class="jxr_javadoccomment"> * Line separator in the base64
encoded data.</em>
<a class="jxr_linenumber" name="186" href="#186">186</a> <em
class="jxr_javadoccomment"> * @throws Exception</em>
<a class="jxr_linenumber" name="187" href="#187">187</a> <em
class="jxr_javadoccomment"> * Usually signifies a bug in the
Base64 commons-codec implementation.</em>
<a class="jxr_linenumber" name="188" href="#188">188</a> <em
class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="189" href="#189">189</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByChunk(<strong class="jxr_keyword">final</strong> byte[] encoded, <strong
class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] seperator) <strong
class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="189" href="#189">189</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByChunk(<strong class="jxr_keyword">final</strong> byte[] encoded, <strong
class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] separator) <strong
class="jxr_keyword">throws</strong> Exception {
<a class="jxr_linenumber" name="190" href="#190">190</a>
<a class="jxr_linenumber" name="191" href="#191">191</a> <em
class="jxr_comment">// Start with encode.</em>
<a class="jxr_linenumber" name="192" href="#192">192</a>
ByteArrayOutputStream byteOut = <strong class="jxr_keyword">new</strong>
ByteArrayOutputStream();
-<a class="jxr_linenumber" name="193" href="#193">193</a> OutputStream
out = <strong class="jxr_keyword">new</strong> Base64OutputStream(byteOut,
<strong class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="193" href="#193">193</a> OutputStream
out = <strong class="jxr_keyword">new</strong> Base64OutputStream(byteOut,
<strong class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="194" href="#194">194</a>
out.write(decoded);
<a class="jxr_linenumber" name="195" href="#195">195</a> out.close();
<a class="jxr_linenumber" name="196" href="#196">196</a> byte[] output
= byteOut.toByteArray();
@@ -219,7 +219,7 @@
<a class="jxr_linenumber" name="209" href="#209">209</a> out = byteOut;
<a class="jxr_linenumber" name="210" href="#210">210</a> <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i =
0; i < 10; i++) {
<a class="jxr_linenumber" name="211" href="#211">211</a> out =
<strong class="jxr_keyword">new</strong> Base64OutputStream(out, false);
-<a class="jxr_linenumber" name="212" href="#212">212</a> out =
<strong class="jxr_keyword">new</strong> Base64OutputStream(out, <strong
class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="212" href="#212">212</a> out =
<strong class="jxr_keyword">new</strong> Base64OutputStream(out, <strong
class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="213" href="#213">213</a> }
<a class="jxr_linenumber" name="214" href="#214">214</a>
out.write(decoded);
<a class="jxr_linenumber" name="215" href="#215">215</a> out.close();
@@ -241,16 +241,16 @@
<a class="jxr_linenumber" name="231" href="#231">231</a> <em
class="jxr_javadoccomment"> * the data from above, but
decoded</em>
<a class="jxr_linenumber" name="232" href="#232">232</a> <em
class="jxr_javadoccomment"> * @param chunkSize</em>
<a class="jxr_linenumber" name="233" href="#233">233</a> <em
class="jxr_javadoccomment"> * chunk size (line-length) of the
base64 encoded data.</em>
-<a class="jxr_linenumber" name="234" href="#234">234</a> <em
class="jxr_javadoccomment"> * @param seperator</em>
+<a class="jxr_linenumber" name="234" href="#234">234</a> <em
class="jxr_javadoccomment"> * @param separator</em>
<a class="jxr_linenumber" name="235" href="#235">235</a> <em
class="jxr_javadoccomment"> * Line separator in the base64
encoded data.</em>
<a class="jxr_linenumber" name="236" href="#236">236</a> <em
class="jxr_javadoccomment"> * @throws Exception</em>
<a class="jxr_linenumber" name="237" href="#237">237</a> <em
class="jxr_javadoccomment"> * Usually signifies a bug in the
Base64 commons-codec implementation.</em>
<a class="jxr_linenumber" name="238" href="#238">238</a> <em
class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="239" href="#239">239</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByteByByte(<strong class="jxr_keyword">final</strong> byte[] encoded,
<strong class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] seperator) <strong
class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="239" href="#239">239</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
testByteByByte(<strong class="jxr_keyword">final</strong> byte[] encoded,
<strong class="jxr_keyword">final</strong> byte[] decoded, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
chunkSize, <strong class="jxr_keyword">final</strong> byte[] separator) <strong
class="jxr_keyword">throws</strong> Exception {
<a class="jxr_linenumber" name="240" href="#240">240</a>
<a class="jxr_linenumber" name="241" href="#241">241</a> <em
class="jxr_comment">// Start with encode.</em>
<a class="jxr_linenumber" name="242" href="#242">242</a>
ByteArrayOutputStream byteOut = <strong class="jxr_keyword">new</strong>
ByteArrayOutputStream();
-<a class="jxr_linenumber" name="243" href="#243">243</a> OutputStream
out = <strong class="jxr_keyword">new</strong> Base64OutputStream(byteOut,
<strong class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="243" href="#243">243</a> OutputStream
out = <strong class="jxr_keyword">new</strong> Base64OutputStream(byteOut,
<strong class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="244" href="#244">244</a> <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong>
byte element : decoded) {
<a class="jxr_linenumber" name="245" href="#245">245</a>
out.write(element);
<a class="jxr_linenumber" name="246" href="#246">246</a> }
@@ -284,7 +284,7 @@
<a class="jxr_linenumber" name="274" href="#274">274</a> out = byteOut;
<a class="jxr_linenumber" name="275" href="#275">275</a> <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i =
0; i < 10; i++) {
<a class="jxr_linenumber" name="276" href="#276">276</a> out =
<strong class="jxr_keyword">new</strong> Base64OutputStream(out, false);
-<a class="jxr_linenumber" name="277" href="#277">277</a> out =
<strong class="jxr_keyword">new</strong> Base64OutputStream(out, <strong
class="jxr_keyword">true</strong>, chunkSize, seperator);
+<a class="jxr_linenumber" name="277" href="#277">277</a> out =
<strong class="jxr_keyword">new</strong> Base64OutputStream(out, <strong
class="jxr_keyword">true</strong>, chunkSize, separator);
<a class="jxr_linenumber" name="278" href="#278">278</a> }
<a class="jxr_linenumber" name="279" href="#279">279</a> <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong>
byte element : decoded) {
<a class="jxr_linenumber" name="280" href="#280">280</a>
out.write(element);
Modified:
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base64Test.html
==============================================================================
---
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base64Test.html
(original)
+++
websites/production/commons/content/proper/commons-codec/xref-test/org/apache/commons/codec/binary/Base64Test.html
Wed Dec 11 04:34:40 2013
@@ -47,7 +47,7 @@
<a class="jxr_linenumber" name="37" href="#37">37</a> <em
class="jxr_javadoccomment"> * Test cases for Base64 class.</em>
<a class="jxr_linenumber" name="38" href="#38">38</a> <em
class="jxr_javadoccomment"> *</em>
<a class="jxr_linenumber" name="39" href="#39">39</a> <em
class="jxr_javadoccomment"> * @see <a href="<a
href="http://www.ietf.org/rfc/rfc2045.txt"
target="alexandria_uri">http://www.ietf.org/rfc/rfc2045.txt</a>">RFC
2045</a></em>
-<a class="jxr_linenumber" name="40" href="#40">40</a> <em
class="jxr_javadoccomment"> * @version $Id: Base64Test.java 1462765 2013-03-30
14:21:56Z ggregory $</em>
+<a class="jxr_linenumber" name="40" href="#40">40</a> <em
class="jxr_javadoccomment"> * @version $Id: Base64Test.java 1539804 2013-11-07
20:36:20Z ggregory $</em>
<a class="jxr_linenumber" name="41" href="#41">41</a> <em
class="jxr_javadoccomment"> */</em>
<a class="jxr_linenumber" name="42" href="#42">42</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong>
<a
href="../../../../../org/apache/commons/codec/binary/Base64Test.html">Base64Test</a>
{
<a class="jxr_linenumber" name="43" href="#43">43</a>
@@ -124,8 +124,8 @@
<a class="jxr_linenumber" name="114" href="#114">114</a> @Test
<a class="jxr_linenumber" name="115" href="#115">115</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testDecodeWithInnerPad() {
<a class="jxr_linenumber" name="116" href="#116">116</a> <strong
class="jxr_keyword">final</strong> String content = <span
class="jxr_string">"SGVsbG8gV29ybGQ=SGVsbG8gV29ybGQ="</span>;
-<a class="jxr_linenumber" name="117" href="#117">117</a> byte[] result
= Base64.decodeBase64(content);
-<a class="jxr_linenumber" name="118" href="#118">118</a> byte[]
shouldBe = StringUtils.getBytesUtf8(<span class="jxr_string">"Hello
World"</span>);
+<a class="jxr_linenumber" name="117" href="#117">117</a> <strong
class="jxr_keyword">final</strong> byte[] result = Base64.decodeBase64(content);
+<a class="jxr_linenumber" name="118" href="#118">118</a> <strong
class="jxr_keyword">final</strong> byte[] shouldBe =
StringUtils.getBytesUtf8(<span class="jxr_string">"Hello World"</span>);
<a class="jxr_linenumber" name="119" href="#119">119</a>
assertTrue(<span class="jxr_string">"decode should halt at pad (=)"</span>,
Arrays.equals(result, shouldBe));
<a class="jxr_linenumber" name="120" href="#120">120</a> }
<a class="jxr_linenumber" name="121" href="#121">121</a>