classlib: add PrintStream.printf

This commit is contained in:
Alexey Andreev 2024-03-21 19:18:42 +01:00
parent 403da28830
commit da0eb4e1e3

View File

@ -269,6 +269,14 @@ public class TPrintStream extends TFilterOutputStream {
print('\n'); print('\n');
} }
public TPrintStream printf(String format, Object... args) {
return format(format, args);
}
public TPrintStream printf(Locale locale, String format, Object... args) {
return format(locale, format, args);
}
public TPrintStream format(String format, Object... args) { public TPrintStream format(String format, Object... args) {
return format(Locale.getDefault(), format, args); return format(Locale.getDefault(), format, args);
} }