You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2025/01/20 12:02:00 UTC

[jira] [Created] (CODEC-325) Base32 builder: make it easier to use the hex encoding table

Julian Reschke created CODEC-325:
------------------------------------

             Summary: Base32 builder: make it easier to use the hex encoding table
                 Key: CODEC-325
                 URL: https://issues.apache.org/jira/browse/CODEC-325
             Project: Commons Codec
          Issue Type: Wish
            Reporter: Julian Reschke


In our (Jackrabbit) quest to remove Guava dependencies, we started using the commons-codec Base32 class.

I first started with the Builder, but noted that using hexEncoding is a bit ... complicated. Other than with the constructor:

  https://commons.apache.org/proper/commons-codec/apidocs/org/apache/commons/codec/binary/Base32.html#%3Cinit%3E(boolean)

we need to specify the actual encoding table (a nice feature to have), but use one of the two known tables requires actually copying the table over.

It would be nice if there either was a shortcut (using a boolean as before), or if the two "known" tables could be made visible to the caller (either using public constants, or some convenience methods).

Best regards, Julian



--
This message was sent by Atlassian Jira
(v8.20.10#820010)