private String getRowFormat ( List < Integer > widths ) { StringBuilder rowFormat = new StringBuilder ( spaces ( this . indentation ) ) ; for ( int i = 0 ; i < widths . size ( ) ; i ++ ) { rowFormat . append ( "%" ) ; rowFormat . append ( this . flags != null ? this . flags . get ( i ) : "" ) ; rowFormat . append ( widths . get ( i ) . toString ( ) ) ; rowFormat . append ( "s" ) ; rowFormat . append ( spaces ( this . delimiterWidth ) ) ; } rowFormat . append ( "\n" ) ; return rowFormat . toString ( ) ; }
Generates a simple row format string given a set of widths