blueflood-core/src/main/java/com/rackspacecloud/blueflood/tools/jmx/OutputFormatter.java
public static String[] format(int[] maximums, OutputFormatter... outputs) {
        String[] formattedStrings = new String[outputs.length];
        int pos = 0;
        for (OutputFormatter output : outputs) {
            StringBuilder sb = new StringBuilder();
            sb = sb.append(formatIn(output.host, maximums[0], false));
            for (int i = 0; i < output.results.length; i++)
                sb = sb.append(GAP).append(formatIn(output.results[i], maximums[i+1], true));
            formattedStrings[pos++] = sb.toString();
        }
        return formattedStrings;
    }
public static String[] format(int[] maximums, OutputFormatter... outputs) {
        String[] formattedStrings = new String[outputs.length];
        int pos = 0;
        for (OutputFormatter output : outputs) {
            StringBuilder sb = new StringBuilder();
            sb = sb.append(formatIn(output.host, maximums[0], false));
            for (int i = 0; i < output.results.length; i++)
                sb = sb.append(GAP).append(formatIn(output.results[i], maximums[i+1], true));
            formattedStrings[pos++] = sb.toString();
        }
        return formattedStrings;
    }
public static String [ ] format ( int [ ] maximums , OutputFormatter ... outputs ) { String [ ] formattedStrings = new String [ outputs . length ] ; int pos = 0 ; for ( OutputFormatter output : outputs ) { StringBuilder sb = new StringBuilder ( ) ; sb = sb . append ( formatIn ( output . host , maximums [ 0 ] , false ) ) ; for ( int i = 0 ; i < output . results . length ; i ++ ) sb = sb . append ( GAP ) . append ( formatIn ( output . results [ i ] , maximums [ i + 1 ] , true ) ) ; formattedStrings [ pos ++ ] = sb . toString ( ) ; } return formattedStrings ; }
formats results and sets formattedStrings.
formats results and sets formattedStrings .