반응형
public static String bytesConvertHexString(byte[] buff)
{
StringBuilder sb = new StringBuilder();
for (final byte b : buff)
{
sb.append(String.format("%02x", b & 0xff));
}
return sb.toString();
}
반응형
'→ 개발 > JAVA' 카테고리의 다른 글
[JAVA] Date → String, String → Date (0) | 2020.06.19 |
---|---|
[JAVA] int, long, short GetBytes() (0) | 2020.04.29 |
[JAVA] String GetBytes (0) | 2020.04.29 |
[JAVA] C# string.PadLeft() → JAVA String.format... (0) | 2020.04.23 |
[JAVA] C# Buffer.BlockCopy() → JAVA System.arraycopy() (0) | 2020.04.23 |