You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2009/08/03 16:11:15 UTC
[jira] Created: (CODEC-85) Hex class is inefficient and uses
default platform encoding for String <=> byte[] conversions
Hex class is inefficient and uses default platform encoding for String <=> byte[] conversions
---------------------------------------------------------------------------------------------
Key: CODEC-85
URL: https://issues.apache.org/jira/browse/CODEC-85
Project: Commons Codec
Issue Type: Improvement
Reporter: Sebb
The Hex class uses the following, which rely on the current platform encoding:
new String(byte[] [, int, int])
String.getBytes()
There does not seem to be a bug here (at least I could not provoke one), but it seems rather inefficient to convert to/from strings in order to treat bytes as chars.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CODEC-85) Hex class is inefficient and uses
default platform encoding for String <=> byte[] conversions
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CODEC-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb resolved CODEC-85.
-----------------------
Resolution: Fixed
Forgot I'd already raised this as part of CODEC-73...
> Hex class is inefficient and uses default platform encoding for String <=> byte[] conversions
> ---------------------------------------------------------------------------------------------
>
> Key: CODEC-85
> URL: https://issues.apache.org/jira/browse/CODEC-85
> Project: Commons Codec
> Issue Type: Improvement
> Reporter: Sebb
>
> The Hex class uses the following, which rely on the current platform encoding:
> new String(byte[] [, int, int])
> String.getBytes()
> There does not seem to be a bug here (at least I could not provoke one), but it seems rather inefficient to convert to/from strings in order to treat bytes as chars.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (CODEC-85) Hex class is inefficient and uses default
platform encoding for String <=> byte[] conversions
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CODEC-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niall Pemberton closed CODEC-85.
--------------------------------
> Hex class is inefficient and uses default platform encoding for String <=> byte[] conversions
> ---------------------------------------------------------------------------------------------
>
> Key: CODEC-85
> URL: https://issues.apache.org/jira/browse/CODEC-85
> Project: Commons Codec
> Issue Type: Improvement
> Reporter: Sebb
>
> The Hex class uses the following, which rely on the current platform encoding:
> new String(byte[] [, int, int])
> String.getBytes()
> There does not seem to be a bug here (at least I could not provoke one), but it seems rather inefficient to convert to/from strings in order to treat bytes as chars.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.