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

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

    [ https://issues.apache.org/jira/browse/CODEC-325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17914686#comment-17914686 ] 

Gary D. Gregory commented on CODEC-325:
---------------------------------------

The way to go here is to create a builder to avoid continuing constructor inflation. I'll take a look...

 

> 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
>            Priority: Minor
>
> 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)