public static String formatMode ( short mode , boolean directory , boolean hasExtended ) { StringBuilder str = new StringBuilder ( ) ; if ( directory ) { str . append ( "d" ) ; } else { str . append ( "-" ) ; } str . append ( new Mode ( mode ) . toString ( ) ) ; if ( hasExtended ) { str . append ( "+" ) ; } return str . toString ( ) ; }
Formats digital representation of a model as a human - readable string .