|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectariba.util.core.Fmt
public class Fmt
Formatted output. Like printf, except the only directives are
%% -- print a single %
%/ -- print a java.io.File.separator
%[-][0][nn][.mm]s -- toString and print the next argument If the argument if fewer than NN characters, it is padded to NN characters. Padding is on the left if the directive starts with '-', otherwise it is on the right. Fields are padded with spaces, unless the optional '0' (zero) character is given, in which case the string is padded with zeros. There is no way to specify another pad character. If the argument has more than MM characters, it is truncated to MM characters. If NN is not given, there is no padding. If MM is not given, there is no truncation.
| Field Summary | |
|---|---|
static String |
EscapedSingleQuoteString
|
static Object[] |
NoMore
|
static Object |
Null
|
static char |
SingleQuoteChar
|
static String |
SingleQuoteString
|
| Method Summary | |
|---|---|
static void |
B(FormatBuffer buf,
String control)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
String control,
Object a1)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
String control,
Object[] args)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
String control,
Object a1,
Object a2)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
String control,
Object a1,
Object a2,
Object a3)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
String control,
Object a1,
Object a2,
Object a3,
Object a4)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
Deprecated. use B(FormatBuffer, control, Object[]) |
static void |
Bq(FormatBuffer buffer,
String control,
Object... args)
Vararg-based format function based on Fmt.B but escaping every string argument in the list |
static String |
escapeSingleQuote(String value)
|
static void |
F(PrintWriter out,
String control)
Format a message into a PrintWriter. |
static void |
F(PrintWriter out,
String control,
int i1)
Format a message into a PrintWriter. |
static void |
F(PrintWriter out,
String control,
Object a1)
Format a message into a PrintWriter. |
static void |
F(PrintWriter out,
String control,
Object[] args)
Format a message into a PrintWriter. |
static void |
F(PrintWriter out,
String control,
Object a1,
Object a2)
Format a message into a PrintWriter. |
static void |
F(PrintWriter out,
String control,
Object a1,
Object a2,
Object a3)
Format a message into a PrintWriter. |
static void |
F(PrintWriter out,
String control,
Object a1,
Object a2,
Object a3,
Object a4)
Format a message into a PrintWriter. |
static void |
F(PrintWriter out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
Format a message into a PrintWriter. |
static void |
F(PrintWriter out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
Format a message into a PrintWriter. |
static void |
F(PrintWriter out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
Deprecated. use F(PrintWriter, String, Object[]) |
static void |
freeBuffer(FormatBuffer buf)
|
static FormatBuffer |
getBuffer()
|
static void |
O(OutputStream out,
String control)
Format a message into an OutputStream. |
static void |
O(OutputStream out,
String control,
Object a1)
Format a message into an OutputStream. |
static void |
O(OutputStream out,
String control,
Object[] args)
Format a message into an OutputStream. |
static void |
O(OutputStream out,
String control,
Object a1,
Object a2)
Format a message into an OutputStream. |
static void |
O(OutputStream out,
String control,
Object a1,
Object a2,
Object a3)
Format a message into an OutputStream. |
static void |
O(OutputStream out,
String control,
Object a1,
Object a2,
Object a3,
Object a4)
Format a message into an OutputStream. |
static void |
O(OutputStream out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
Format a message into an OutputStream. |
static void |
O(OutputStream out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
Format a message into an OutputStream. |
static void |
O(OutputStream out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
Deprecated. use O(OutputStream, String, Object[]) |
static String |
S(String control)
Format a message into a String. |
static String |
S(String control,
int i1)
Format a message into a String. |
static String |
S(String control,
Object a1)
Format a message into a String. |
static String |
S(String control,
Object[] args)
Format a message into a String. |
static String |
S(String control,
Object a1,
Object a2)
Format a message into a String. |
static String |
S(String control,
Object a1,
Object a2,
Object a3)
Format a message into a String. |
static String |
S(String control,
Object a1,
Object a2,
Object a3,
Object a4)
Format a message into a String. |
static String |
S(String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
Format a message into a String. |
static String |
S(String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
Format a message into a String. |
static String |
S(String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
Deprecated. use S(String, Object[]) |
static String |
safeEscapeSingleQuote(String value)
Safe escape for single quotes, without doubling up on the escape. |
static String |
Si(String control,
List vectorArgs)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static String |
Si(String control,
Object a1)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static String |
Si(String control,
Object[] args)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static String |
Si(String control,
Object a1,
Object a2)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static String |
Si(String control,
Object a1,
Object a2,
Object a3)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static String |
Si(String control,
Object a1,
Object a2,
Object a3,
Object a4)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static String |
Si(String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static String |
Si(String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static String |
Si(String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
Deprecated. use Si(String, Object[]) |
static String |
Sil(Locale locale,
String stringTable,
String key)
An internationalized version of Fmt.S that gets the control string from the specified string table for the specified locale and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(Locale locale,
String stringTable,
String key,
List vectorArgs)
An internationalized version of Fmt.S that gets the control string from the specified string table for the specified locale and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(Locale locale,
String stringTable,
String key,
Object a1)
An internationalized version of Fmt.S that gets the control string from the specified string table for the specified locale and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(Locale locale,
String stringTable,
String key,
Object[] args)
An internationalized version of Fmt.S that gets the control string from the specified string table for the specified locale and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(Locale locale,
String stringTable,
String key,
Object a1,
Object a2)
An internationalized version of Fmt.S that gets the control string from the specified string table for the specified locale and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(Locale locale,
String stringTable,
String key,
Object a1,
Object a2,
Object a3)
An internationalized version of Fmt.S that gets the control string from the specified string table for the specified locale and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(Locale locale,
String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4)
An internationalized version of Fmt.S that gets the control string from the specified string table for the specified locale and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(Locale locale,
String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
An internationalized version of Fmt.S that gets the control string from the specified string table for the specified locale and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(Locale locale,
String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
An internationalized version of Fmt.S that gets the control string from the specified string table for the specified locale and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(Locale locale,
String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
Deprecated. use Sil(Locale, String, String, Object[]) |
static String |
Sil(String stringTable,
String key)
Deprecated. use ariba.util.core.ResourceService.getString(String, String) |
static String |
Sil(String stringTable,
String key,
List vectorArgs)
An internationalized version of Fmt.S that gets the control string from the specified string table and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(String stringTable,
String key,
Object a1)
An internationalized version of Fmt.S that gets the control string from the specified string table and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(String stringTable,
String key,
Object[] args)
An internationalized version of Fmt.S that gets the control string from the specified string table and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(String stringTable,
String key,
Object a1,
Object a2)
An internationalized version of Fmt.S that gets the control string from the specified string table and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(String stringTable,
String key,
Object a1,
Object a2,
Object a3)
An internationalized version of Fmt.S that gets the control string from the specified string table and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4)
An internationalized version of Fmt.S that gets the control string from the specified string table and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
An internationalized version of Fmt.S that gets the control string from the specified string table and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
An internationalized version of Fmt.S that gets the control string from the specified string table and does a java.text.MessageFormat style position independent formatting. |
static String |
Sil(String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
Deprecated. use Sil(String, String, Object[]) |
static String |
singleQuote(String value)
In our codebase AQL queries are constructed using Fmt.S where a
string value from a UI could be used to generate the query. |
static String |
Sq(String control,
Object... args)
Vararg-based format function based on Fmt.S but escaping every string argument in the list |
static void |
W(Writer out,
String control)
Formats a message onto a Writer. |
static void |
W(Writer out,
String control,
Object a1)
Formats a message onto a Writer. |
static void |
W(Writer out,
String control,
Object[] args)
Formats a message onto a Writer. |
static void |
W(Writer out,
String control,
Object a1,
Object a2)
Formats a message onto a Writer. |
static void |
W(Writer out,
String control,
Object a1,
Object a2,
Object a3)
Formats a message onto a Writer. |
static void |
W(Writer out,
String control,
Object a1,
Object a2,
Object a3,
Object a4)
Formats a message onto a Writer. |
static void |
W(Writer out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
Formats a message onto a Writer. |
static void |
W(Writer out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
Formats a message onto a Writer. |
static void |
W(Writer out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
Deprecated. use W(Writer, String, Object[]) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Object Null
public static final Object[] NoMore
public static final char SingleQuoteChar
public static final String SingleQuoteString
public static final String EscapedSingleQuoteString
| Method Detail |
|---|
public static FormatBuffer getBuffer()
public static void freeBuffer(FormatBuffer buf)
public static String S(String control)
control - a String defining the format of the output
public static String S(String control,
Object a1)
control - a String defining the format of the outputa1 - the first argument to the format string
control
public static String S(String control,
int i1)
control - a String defining the format of the outputi1 - an integer argument to the format string
control
public static String S(String control,
Object a1,
Object a2)
control - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
control
public static String S(String control,
Object a1,
Object a2,
Object a3)
control - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
control
public static String S(String control,
Object a1,
Object a2,
Object a3,
Object a4)
control - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
control
public static String S(String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
control - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
control
public static String S(String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
control - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
controla6 - the sixth argument to the format string
control
public static String S(String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
control - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
controla6 - the sixth argument to the format string
controlmore - an array containing all subsequent arguments to
the format string control after the sixth one.
public static String S(String control,
Object[] args)
control - a String defining the format of the outputargs - an array containing all arguments to the format
string control
public static void F(PrintWriter out,
String control)
out - a PrintWriter to format the output intocontrol - a String defining the format of the output
public static void F(PrintWriter out,
String control,
Object a1)
out - a PrintWriter to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
control
public static void F(PrintWriter out,
String control,
int i1)
out - a PrintWriter to format the output intocontrol - a String defining the format of the outputi1 - an integer argument to the format string
control
public static void F(PrintWriter out,
String control,
Object a1,
Object a2)
out - a PrintWriter to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
control
public static void F(PrintWriter out,
String control,
Object a1,
Object a2,
Object a3)
out - a PrintWriter to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
control
public static void F(PrintWriter out,
String control,
Object a1,
Object a2,
Object a3,
Object a4)
out - a PrintWriter to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
control
public static void F(PrintWriter out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
out - a PrintWriter to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
control
public static void F(PrintWriter out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
out - a PrintWriter to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
controla6 - the sixth argument to the format string
control
public static void F(PrintWriter out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
out - a PrintWriter to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
controla6 - the sixth argument to the format string
controlmore - an array containing all subsequent arguments to
the format string control after the sixth one.
public static void F(PrintWriter out,
String control,
Object[] args)
out - a PrintWriter to format the output intocontrol - a String defining the format of the outputargs - an array containing all arguments to the format
string control
public static void O(OutputStream out,
String control)
throws IOException
out - an OutputStream to format the output intocontrol - a String defining the format of the output
IOException - if there is a problem writing to the
OutputStream.
public static void O(OutputStream out,
String control,
Object a1)
throws IOException
out - an OutputStream to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
control
IOException - if there is a problem writing to the
OutputStream.
public static void O(OutputStream out,
String control,
Object a1,
Object a2)
throws IOException
out - an OutputStream to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
control
IOException - if there is a problem writing to the
OutputStream.
public static void O(OutputStream out,
String control,
Object a1,
Object a2,
Object a3)
throws IOException
out - an OutputStream to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
control
IOException - if there is a problem writing to the
OutputStream.
public static void O(OutputStream out,
String control,
Object a1,
Object a2,
Object a3,
Object a4)
throws IOException
out - an OutputStream to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
control
IOException - if there is a problem writing to the
OutputStream.
public static void O(OutputStream out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
throws IOException
out - an OutputStream to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
control
IOException - if there is a problem writing to the
OutputStream.
public static void O(OutputStream out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
throws IOException
out - an OutputStream to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
controla6 - the sixth argument to the format string
control
IOException - if there is a problem writing to the
OutputStream.
public static void O(OutputStream out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
throws IOException
out - an OutputStream to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
controla6 - the sixth argument to the format string
controlmore - an array containing all subsequent arguments to
the format string control after the sixth one.
IOException - if there is a problem writing to the
OutputStream.
public static void O(OutputStream out,
String control,
Object[] args)
throws IOException
out - an OutputStream to format the output intocontrol - a String defining the format of the outputargs - an array containing all arguments to
the format string control
IOException - if there is a problem writing to the
OutputStream.
public static void W(Writer out,
String control)
throws IOException
Writer.
out - a Writer to format the output intocontrol - a String defining the format of the output
IOException - if there is a problem writing to the
Writer.
public static void W(Writer out,
String control,
Object a1)
throws IOException
Writer.
out - a Writer to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
control
IOException - if there is a problem writing to the
Writer.
public static void W(Writer out,
String control,
Object a1,
Object a2)
throws IOException
Writer.
out - a Writer to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
control
IOException - if there is a problem writing to the
Writer.
public static void W(Writer out,
String control,
Object a1,
Object a2,
Object a3)
throws IOException
Writer.
out - a Writer to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
control
IOException - if there is a problem writing to the
Writer.
public static void W(Writer out,
String control,
Object a1,
Object a2,
Object a3,
Object a4)
throws IOException
Writer.
out - a Writer to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
control
IOException - if there is a problem writing to the
Writer.
public static void W(Writer out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
throws IOException
Writer.
out - a Writer to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
control
IOException - if there is a problem writing to the
Writer.
public static void W(Writer out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
throws IOException
Writer.
out - a Writer to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
controla6 - the sixth argument to the format string
control
IOException - if there is a problem writing to the
Writer.
public static void W(Writer out,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
throws IOException
Writer.
out - a Writer to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
controla6 - the sixth argument to the format string
controlmore - an array containing all subsequent arguments to
the format string control after the sixth one.
IOException - if there is a problem writing to the
Writer.
public static void W(Writer out,
String control,
Object[] args)
throws IOException
Writer.
out - a Writer to format the output intocontrol - a String defining the format of the outputargs - an array containing all arguments to
the format string control
IOException - if there is a problem writing to the
Writer.
public static void B(FormatBuffer buf,
String control)
buf - a FormatBuffer to format the output intocontrol - a String defining the format of the output
public static void B(FormatBuffer buf,
String control,
Object a1)
buf - a FormatBuffer to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
control
public static void B(FormatBuffer buf,
String control,
Object a1,
Object a2)
buf - a FormatBuffer to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
control
public static void B(FormatBuffer buf,
String control,
Object a1,
Object a2,
Object a3)
buf - a FormatBuffer to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
control
public static void B(FormatBuffer buf,
String control,
Object a1,
Object a2,
Object a3,
Object a4)
buf - a FormatBuffer to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
control
public static void B(FormatBuffer buf,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
buf - a FormatBuffer to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
control
public static void B(FormatBuffer buf,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
buf - a FormatBuffer to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
controla6 - the sixth argument to the format string
control
public static void B(FormatBuffer buf,
String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
buf - a FormatBuffer to format the output intocontrol - a String defining the format of the outputa1 - the first argument to the format string
controla2 - the second argument to the format string
controla3 - the third argument to the format string
controla4 - the fourth argument to the format string
controla5 - the fifth argument to the format string
controla6 - the sixth argument to the format string
controlmore - an array containing all subsequent arguments to
the format string control after the sixth one.
public static void B(FormatBuffer buf,
String control,
Object[] args)
buf - a FormatBuffer to format the output intocontrol - a String defining the format of the outputargs - an array containing all arguments to the format
string control after the sixth one
public static String Sil(String stringTable,
String key)
Since using MessageFormat without any substitute arguments is not useful, this method is deprecated and ResourceService.getString(String, String) should be used instead.
Because there are no substitution values in the string, translators may not be aware that they should use MessageFormat conventions and they may or may not do so. This could cause lose of single-quotes because a single-quote is an escape character to MessageFormat. This method tries to detect strings that are in MessageFormat conventions. If a "''" (two single-quotes) or a "{" are present, the string is format with MessageFormat. Otherwise, the string is returned without formatting.
stringTable - resource string tablekey - resource key
public static String Sil(String stringTable,
String key,
Object a1)
stringTable - resource string tablekey - resource keya1 - object to be substituted
public static String Sil(String stringTable,
String key,
Object a1,
Object a2)
stringTable - resource string tablekey - resource keya1 - object to be substituteda2 - object to be substituted
public static String Sil(String stringTable,
String key,
Object a1,
Object a2,
Object a3)
stringTable - resource string tablekey - resource keya1 - object to be substituteda2 - object to be substituteda3 - object to be substituted
public static String Sil(String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4)
stringTable - resource string tablekey - resource keya1 - object to be substituteda2 - object to be substituteda3 - object to be substituteda4 - object to be substituted
public static String Sil(String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
stringTable - resource string tablekey - resource keya1 - object to be substituteda2 - object to be substituteda3 - object to be substituteda4 - object to be substituteda5 - object to be substituted
public static String Sil(String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
stringTable - resource string tablekey - resource keya1 - object to be substituteda2 - object to be substituteda3 - object to be substituteda4 - object to be substituteda5 - object to be substituteda6 - object to be substituted
public static String Sil(String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
stringTable - resource string tablekey - resource keya1 - object to be substituteda2 - object to be substituteda3 - object to be substituteda4 - object to be substituteda5 - object to be substituteda6 - object to be substitutedmore - object array for more arguments
public static String Sil(String stringTable,
String key,
List vectorArgs)
stringTable - resource string tablekey - resource keyvectorArgs - object arguments to be substituted
public static String Sil(String stringTable,
String key,
Object[] args)
stringTable - resource string tablekey - resource key, cannot be nullargs - object arguments to be substituted
Si(String, Object[])
public static String Sil(Locale locale,
String stringTable,
String key)
locale - locale to be usedstringTable - resource string tablekey - resource key
public static String Sil(Locale locale,
String stringTable,
String key,
Object a1)
locale - locale to be usedstringTable - resource string tablekey - resource keya1 - object to be substituted
public static String Sil(Locale locale,
String stringTable,
String key,
Object a1,
Object a2)
locale - locale to be usedstringTable - resource string tablekey - resource keya1 - object to be substituteda2 - object to be substituted
public static String Sil(Locale locale,
String stringTable,
String key,
Object a1,
Object a2,
Object a3)
locale - locale to be usedstringTable - resource string tablekey - resource keya1 - object to be substituteda2 - object to be substituteda3 - object to be substituted
public static String Sil(Locale locale,
String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4)
locale - locale to be usedstringTable - resource string tablekey - resource keya1 - object to be substituteda2 - object to be substituteda3 - object to be substituteda4 - object to be substituted
public static String Sil(Locale locale,
String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
locale - locale to be usedstringTable - resource string tablekey - resource keya1 - object to be substituteda2 - object to be substituteda3 - object to be substituteda4 - object to be substituteda5 - object to be substituted
public static String Sil(Locale locale,
String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
locale - locale to be usedstringTable - resource string tablekey - resource keya1 - object to be substituteda2 - object to be substituteda3 - object to be substituteda4 - object to be substituteda5 - object to be substituteda6 - object to be substituted
public static String Sil(Locale locale,
String stringTable,
String key,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
locale - locale to be usedstringTable - resource string tablekey - resource keya1 - object to be substituteda2 - object to be substituteda3 - object to be substituteda4 - object to be substituteda5 - object to be substituteda6 - object to be substitutedmore - object array for more arguments
public static String Sil(Locale locale,
String stringTable,
String key,
List vectorArgs)
locale - locale to be usedstringTable - resource string tablekey - resource keyvectorArgs - object arguments to be substituted
public static String Sil(Locale locale,
String stringTable,
String key,
Object[] args)
locale - locale to be usedstringTable - resource string tablekey - resource keyargs - object arguments to be substituted
public static String Si(String control,
Object a1)
control - MessageFormat style patterna1 - object to be substituted
public static String Si(String control,
Object a1,
Object a2)
control - MessageFormat style patterna1 - object to be substituteda2 - object to be substituted
public static String Si(String control,
Object a1,
Object a2,
Object a3)
control - MessageFormat style patterna1 - object to be substituteda2 - object to be substituteda3 - object to be substituted
public static String Si(String control,
Object a1,
Object a2,
Object a3,
Object a4)
control - MessageFormat style patterna1 - object to be substituteda2 - object to be substituteda3 - object to be substituteda4 - object to be substituted
public static String Si(String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5)
control - MessageFormat style patterna1 - object to be substituteda2 - object to be substituteda3 - object to be substituteda4 - object to be substituteda5 - object to be substituted
public static String Si(String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6)
control - MessageFormat style patterna1 - object to be substituteda2 - object to be substituteda3 - object to be substituteda4 - object to be substituteda5 - object to be substituteda6 - object to be substituted
public static String Si(String control,
Object a1,
Object a2,
Object a3,
Object a4,
Object a5,
Object a6,
Object[] more)
control - MessageFormat style patterna1 - object to be substituteda2 - object to be substituteda3 - object to be substituteda4 - object to be substituteda5 - object to be substituteda6 - object to be substitutedmore - array of objects for additional substitutions
public static String Si(String control,
List vectorArgs)
control - MessageFormat style patternvectorArgs - object arguments to be substituted
public static String Si(String control,
Object[] args)
format(String, Object[]) method.
control - MessageFormat style patternargs - object arguments to be substituted
MessageFormat.format(String, Object[])
public static String Sq(String control,
Object... args)
control - control string determining format of the outputargs - varargs list of arguments
public static void Bq(FormatBuffer buffer,
String control,
Object... args)
buffer - FormatBuffer into which the formatted string is outputcontrol - control string determining format of the outputargs - varargs list of argumentspublic static String escapeSingleQuote(String value)
value - a string whose single quotes need escaping.
public static String safeEscapeSingleQuote(String value)
public static String singleQuote(String value)
Fmt.S where a
string value from a UI could be used to generate the query. Unless this value is
quoted, SQL could be injected into the AQL. This convenience method could be
used to prevent such an occurrence.
value - the un-quoted string value
value are
also escaped.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||