code: public String toDetailedString() {
      final String[] units = { "b", "Kb", "Mb", "Gb", "Tb" };
      int unit = 0;
      double l = this.length;
      while ((l >= 1024.0) && (unit < units.length)) {
        unit += 1;
        l /= 1024.0;
      }
  
      return String.format("%s (%.1f %s, r%d)", super.toString(), l,
          units[unit], this.replication);
    }
docs: Provides a detailed string for this file
  
  @return the string formatted as
  <tt>&lt;filename&gt; (&lt;size&gt;, r&lt;replication&gt;)</tt>