private String formatHeaderValue(String value, int size) { String result = StringUtils.substring(value, 0, size); result = StringUtils.center(String.format("- - + %s + - -", result), size, ' '); return result; }
private String formatValue(String value, int size) { String result = StringUtils.substring(value, 0, size); result = StringUtils.rightPad(result, size, ' '); return result; }