class PatternedStringBuilder {

    public String sprintf(Object... args) {
        ByteArrayOutputStream retval = new ByteArrayOutputStream();

        new PrintStream(retval).printf(getPattern(), args);

        return retval.toString();
    }

    public  PatternedStringBuilder(String pattern);

}