Hi,
I would prefer a "normal" class instead a convolut of static methods. Via a normal constructor, we
could pass some custom parameters e.g. capital/uppercase letters for "abcdef", prefix a header line,
width of the index counter, bytes per line, i.e. have all the parameters, you have hardcoded, variable.
Additionally I would like to see a method with variable start and end:
String dump(byte[] bytes, int start, int length)
-Ulf
Am 07.12.2016 um 17:32 schrieb Vincent Ryan:
A hexdump facility has been available for many, many years via an unsupported
class: sun.misc.HexDumpEncoder.
Although that class was always unsupported, it was still accessible. That
accessibility changes with Jigsaw so I’m proposing
a very simple replacement in a new and supported class: java.util.HexDump.
Thanks.
Bug: https://bugs.openjdk.java.net/browse/JDK-8170769
Webrev: http://cr.openjdk.java.net/~vinnie/8170769/webrev.00/