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 ) ; }
Provides a detailed string for this file