code: public static final String hexdump(byte[] buffer, boolean ascii)
     {
        int length = 0;
  
        if (buffer != null)
        {
           length = buffer.length;
        }
  
        return (hexdump(buffer, 0, length, ascii));
     }
docs: This method generates a formatted version of the data contained
  in a byte array. The data is written both in hex, and as ASCII
  characters.
  
  @param buffer data to be displayed
  @param ascii flag indicating whether ASCII equivalent chars should also be displayed
  @return formatted string