You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Iulian Musat <iu...@3dgeo.com> on 2003/01/21 01:05:51 UTC

[Sandbox] [Codec] [PATCH] Base64

Hello everybody !

There are two methods which does not work properly :
String Base64.encode(String data) and
String Base64.encode(String data, String encoding)

The current implementation uses character encoding provided by the 
OutputStreamWriter, which is an overhead. I guess we can safely use 
String.getBytes(encoding), so I made the modification.

I found it useful to have the similar methods for decoding, so I added
String decode(String data) and
String decode(String data, String encoding)

I also modified the test case to use the methods that take String as 
parameter.

Cheers,
-iulian