mirror of
https://github.com/corda/corda.git
synced 2025-06-12 20:28:18 +00:00
implement a few more classpath methods
This commit is contained in:
@ -15,11 +15,24 @@ public class MessageFormat extends Format {
|
||||
this(pattern, Locale.getDefault());
|
||||
}
|
||||
|
||||
public StringBuffer format(Object o, StringBuffer target, FieldPosition p) {
|
||||
public StringBuffer format(Object[] args, StringBuffer target,
|
||||
FieldPosition p)
|
||||
{
|
||||
// todo
|
||||
return target.append(pattern);
|
||||
}
|
||||
|
||||
public StringBuffer format(Object args, StringBuffer target, FieldPosition p)
|
||||
{
|
||||
return format((Object[]) args, target, p);
|
||||
}
|
||||
|
||||
public static String format(String pattern, Object ... args) {
|
||||
return new MessageFormat
|
||||
(pattern).format(args, new StringBuffer(), new FieldPosition(0))
|
||||
.toString();
|
||||
}
|
||||
|
||||
public void applyPattern(String pattern) {
|
||||
this.pattern = pattern;
|
||||
}
|
||||
|
Reference in New Issue
Block a user