commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julius Davies" <juliusdav...@gmail.com>
Subject Re: [codec] Base64InputStream
Date Wed, 18 Jun 2008 16:16:01 GMT
Hi,

I decided to create a new ticket (CODEC-69) rather than attach to
CODEC-8.  The scope of CODEC-8 is somewhat broader (streaming for all
encoders/decoders in commons-codec!), and I don't think I have enough
time to take it that far.

The patch attached to CODEC-69 has JUnits added for many streaming
variations, and javadocs on all non-test code.  I hope people find it
useful and worth committing!


yours,

Julius




On Mon, Jun 16, 2008 at 8:44 AM, Julius Davies <juliusdavies@gmail.com> wrote:
> Hi,
>
> Base64InputStream and Base64OutputStream are coming along.  They both
> have JUnit tests now:
>
> Source:
> http://juliusdavies.ca/codec/src/java/org/apache/commons/codec/binary/
>
> JUnit:
> http://juliusdavies.ca/codec/src/test/org/apache/commons/codec/binary/
>
>
> I still need to do some more javadocs before I attach a patch to the
> JIRA ticket.   Right now the JUnits test byte-by-byte operation of the
> streams (e.g. int i = in.read()), so I'd like to also introduce
> chunk-by-chunk JUnit tests as well.
>
>
> This was a fun test!  (Wrap the InputStream over and over and over
> again with decoding then encoding then decoding...).
>
> InputStream in = new ByteArrayInputStream(data);
> in = new Base64InputStream(in, true);
> in = new Base64InputStream(in, false);
> in = new Base64InputStream(in, true);
> in = new Base64InputStream(in, false);
> in = new Base64InputStream(in, true);
> in = new Base64InputStream(in, false);
> in = new Base64InputStream(in, true);
> in = new Base64InputStream(in, false);
> in = new Base64InputStream(in, true);
> in = new Base64InputStream(in, false);
> in = new Base64InputStream(in, true);
> in = new Base64InputStream(in, false);
> in = new Base64InputStream(in, true);
> in = new Base64InputStream(in, false);
> in = new Base64InputStream(in, true);
> in = new Base64InputStream(in, false);
>
>
>
>
>
>
> yours,
>
> Julius
>
>


-- 
yours,

Julius Davies
250-592-2284 (Home)
250-893-4579 (Mobile)
http://juliusdavies.ca/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message