Logo Search packages:      
Sourcecode: jline version File versions  Download package

final void jline::ConsoleReader::pad ( final String  toPad,
final int  len,
final StringBuffer  appendTo 
) [inline, private]

Append toPad to the specified appendTo, as well as (toPad.length () - len) spaces.

toPad the String to pad
len the target length
appendTo the StringBuffer to which to append the padded String.

Definition at line 879 of file ConsoleReader.java.

Referenced by printColumns().

            appendTo.append (toPad);
            for (int i = 0; i < (len - toPad.length ());
                  i++, appendTo.append (' '));

Generated by  Doxygen 1.6.0   Back to index