HexDump.writeHex is similar to Long#toHexString. Consider consolidating.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753050 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-07-17 10:22:43 +00:00
parent 3d18f17d04
commit b3300cf4be

View File

@ -391,6 +391,10 @@ public class HexDump {
return sb.toString(); return sb.toString();
} }
/**
* @see Integer#toHexString(int)
* @see Long#toHexString(long)
*/
private static void writeHex(StringBuilder sb, long value, int nDigits, String prefix) { private static void writeHex(StringBuilder sb, long value, int nDigits, String prefix) {
sb.append(prefix); sb.append(prefix);
char[] buf = new char[nDigits]; char[] buf = new char[nDigits];