Java Byte Array Dump dumpBytes(byte[] a)

Here you can find the source of dumpBytes(byte[] a)

Description

dump Bytes

License

Open Source License

Declaration

public static String dumpBytes(byte[] a) 

Method Source Code

//package com.java2s;

public class Main {
    public static String dumpBytes(byte[] a) {
        StringBuilder sb = new StringBuilder(a.length * 2);
        for (byte b : a)
            sb.append(String.format("%x", b & 0xff));
        return sb.toString();
    }//from   w ww . j  a  v  a2s .co  m
}

Related

  1. dumpByteArray(byte[] b)
  2. dumpByteArray(byte[] buffer)
  3. dumpByteArray(byte[] bytes)
  4. dumpByteArrayAsInts(byte[] arr)
  5. dumpBytes(byte bb[])
  6. dumpBytes(byte[] b)
  7. dumpBytes(byte[] buffer)
  8. dumpBytes(byte[] buffer)
  9. dumpBytes(byte[] bytes)