code: protected final String toFFDCString(byte[] toDump)
    {
      String result;
      boolean text = true;
      for (int i = 0; i < toDump.length; i++)
      {
        byte b = toDump[i];
        if ((b >= 0x20 && b <= 0x7e))
        {
          text = true;
        }
        else
        {
          text = false;
          break;
        }
      }
  
      if (text)
      {
        result = new String(toDump);
      }
      else
      {
        result = toFFDCString(toDump, 0, toDump.length);
      }
  
      return result;
    }
docs: Generates a string representation of a byte[].
  
  If the byte[] contains non-printable characters a hex dump
  is produced otherwise a String will be produced
  
  @param toDump
  byte[] to generate a string representation of
  @return
  The string representation of the object