code: public static String formatBytes (byte[] data, int start, int count, int max) {
      StringBuilder sb = new StringBuilder(256);
      sb.append(ls);
      formatBytesToSB(sb, data, start, count, true, max);
      return sb.toString();
    }
docs: Produce a formatted view of a limited portion of a byte array.
  Duplicate output lines are suppressed to save space.
  Formatting of the byte array starts at the specified position and continues
  for count, max, or the end of the data, whichever occurs first.
  <p>
  @param data the byte array to be formatted
  @param start position to start formatting the byte array
  @param count of bytes from start position that should be formatted
  @param max maximun number of bytes from start position that should be formatted,
  regardless of the value of length.
  @return the formatted byte array