public static String sprintf ( Object self , String format , Object [ ] values ) { ByteArrayOutputStream outputStream = new ByteArrayOutputStream ( ) ; PrintStream out = new PrintStream ( outputStream ) ; out . printf ( format , values ) ; return outputStream . toString ( ) ; }
Sprintf to a string .