code: public static String formatSlice(DataSlice slice)
    {
      StringBuilder sb = new StringBuilder(256);
      formatSliceToSB(sb, slice, Integer.MAX_VALUE);
      return sb.toString();
    }
docs: Produce a formatted view of a DataSlice.  Duplicate output lines are
  suppressed to save space.
  <p>
  @param slice The DataSlice to be formatted
  @return the formatted data slice