Balzanka / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

add toHexString/fromHexString to Bytes #1363

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

we use is in many places in our code and I believe some other people will need 
it as well.

Usage: 

byte[] bytes = Bytes.fromHexString("01e7");
String s = Bytes.toHexString(bytes);

code:
https://code.google.com/r/kofemann-bytes/source/detail?r=de843c35b27f8be7f84131a
e86b352f44e88fc01&name=bytes

-kofemann.

Original issue reported on code.google.com by kofem...@gmail.com on 8 Apr 2013 at 9:24

GoogleCodeExporter commented 9 years ago
Unit tests included.

Original comment by kofem...@gmail.com on 8 Apr 2013 at 9:25

GoogleCodeExporter commented 9 years ago
See BaseEncoding: 
http://docs.guava-libraries.googlecode.com/git-history/release/javadoc/com/googl
e/common/io/BaseEncoding.html

Original comment by cgdec...@gmail.com on 8 Apr 2013 at 12:41

GoogleCodeExporter commented 9 years ago
Cool! Did not know that this exists. We sill use 12.0.

Thanks!

Original comment by kofem...@gmail.com on 8 Apr 2013 at 12:46

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<issue id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:12

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:08