I\'m using StringBuffer in Java to concat strings together, like so:
StringBuffer str = new StringBuffer(); str.append(\"string value\");
StringBuffer is final. You cannot derive from it. The Best solution really is to add the padding for yourself. Write a method for it and use a PADDING-Constant so that you can easily change it, or better put it in a parameter.