commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julius Davies (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CODEC-59) Add methods to Base64 which work with String instead of byte[]
Date Tue, 28 Jul 2009 19:26:14 GMT

     [ https://issues.apache.org/jira/browse/CODEC-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Julius Davies updated CODEC-59:
-------------------------------

    Attachment: codec59-2009-07-28.patch

Attached codec59-2009-07-28.patch.

Introduces the String oriented methods previously mentioned in comments here.

Also improves StringUtils handling of null input, as well as Base64.decode() of null.  The
reset() calls added to Base64 are pretty important I think in case people try to re-use Base64
objects, e.g.:

{code}
Base64 b64 = new Base64();
b64.encode( someThing );
b64.encode( someOtherThing );
{code}

This will only work with the reset() calls I've added as part of this patch.

> Add methods to Base64 which work with String instead of byte[]
> --------------------------------------------------------------
>
>                 Key: CODEC-59
>                 URL: https://issues.apache.org/jira/browse/CODEC-59
>             Project: Commons Codec
>          Issue Type: Improvement
>            Reporter: Pepijn Schmitz
>            Priority: Minor
>             Fix For: 1.x
>
>         Attachments: codec59-2009-07-28.patch
>
>
> It would be great if the Base64 class had String encode(byte[]) and byte[] decode(String)
methods. The RFC is stated in terms of "characters" for the encoding, so there should be no
problem with unwarranted assumptions with this. Currently everyone is having to convert to
and from Strings themselves.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message