public static String boxify(final char boxing, final String text) {
        if (boxing != 0 && StringUtils.isNotBlank(text)) {
            final StringBuilder b = new StringBuilder();
            b.append(NEW_LINE);
            final String line = StringUtils.repeat(String.valueOf(boxing), text.length() + 4);
            b.append(line).append(NEW_LINE);
            b.append(boxing).append(SPACE).append(text).append(SPACE).append(boxing).append(NEW_LINE);
            b.append(line).append(NEW_LINE);
            return b.toString();
        }
        return EMPTY;
    }
public static String boxify ( final char boxing , final String text ) { if ( boxing != 0 && StringUtils . isNotBlank ( text ) ) { final StringBuilder b = new StringBuilder ( ) ; b . append ( NEW_LINE ) ; final String line = StringUtils . repeat ( String . valueOf ( boxing ) , text . length ( ) + 4 ) ; b . append ( line ) . append ( NEW_LINE ) ; b . append ( boxing ) . append ( SPACE ) . append ( text ) . append ( SPACE ) . append ( boxing ) . append ( NEW_LINE ) ; b . append ( line ) . append ( NEW_LINE ) ; return b . toString ( ) ; } return EMPTY ; }
Returns a String which is surrounded by a box made of boxing char.
@param boxing boxing character, eg '+'
@param text
@return