Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-85

Hex class is inefficient and uses default platform encoding for String <=> byte[] conversions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sebb Sebb
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: