|
|||||||||
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 java.lang.String |
EscapedSingleQuoteString
|
static java.lang.Object[] |
NoMore
|
static java.lang.Object |
Null
|
static char |
SingleQuoteChar
|
static java.lang.String |
SingleQuoteString
|
Method Summary | |
---|---|
static void |
B(FormatBuffer buf,
java.lang.String control)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
java.lang.String control,
java.lang.Object a1)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
java.lang.String control,
java.lang.Object[] args)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.Object a6)
Format a message into a FormatBuffer. |
static void |
B(FormatBuffer buf,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.Object a6,
java.lang.Object[] more)
Deprecated. use B(FormatBuffer, control, Object[]) |
static void |
Bq(FormatBuffer buffer,
java.lang.String control,
java.lang.Object... args)
Vararg-based format function based on Fmt.B but escaping every string argument in the list |
static java.lang.String |
escapeSingleQuote(java.lang.String value)
|
static void |
F(java.io.PrintWriter out,
java.lang.String control)
Format a message into a PrintWriter. |
static void |
F(java.io.PrintWriter out,
java.lang.String control,
int i1)
Format a message into a PrintWriter. |
static void |
F(java.io.PrintWriter out,
java.lang.String control,
java.lang.Object a1)
Format a message into a PrintWriter. |
static void |
F(java.io.PrintWriter out,
java.lang.String control,
java.lang.Object[] args)
Format a message into a PrintWriter. |
static void |
F(java.io.PrintWriter out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2)
Format a message into a PrintWriter. |
static void |
F(java.io.PrintWriter out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3)
Format a message into a PrintWriter. |
static void |
F(java.io.PrintWriter out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4)
Format a message into a PrintWriter. |
static void |
F(java.io.PrintWriter out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5)
Format a message into a PrintWriter. |
static void |
F(java.io.PrintWriter out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.Object a6)
Format a message into a PrintWriter. |
static void |
F(java.io.PrintWriter out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.Object a6,
java.lang.Object[] more)
Deprecated. use F(PrintWriter, String, Object[]) |
static void |
freeBuffer(FormatBuffer buf)
|
static FormatBuffer |
getBuffer()
|
static void |
O(java.io.OutputStream out,
java.lang.String control)
Format a message into an OutputStream. |
static void |
O(java.io.OutputStream out,
java.lang.String control,
java.lang.Object a1)
Format a message into an OutputStream. |
static void |
O(java.io.OutputStream out,
java.lang.String control,
java.lang.Object[] args)
Format a message into an OutputStream. |
static void |
O(java.io.OutputStream out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2)
Format a message into an OutputStream. |
static void |
O(java.io.OutputStream out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3)
Format a message into an OutputStream. |
static void |
O(java.io.OutputStream out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4)
Format a message into an OutputStream. |
static void |
O(java.io.OutputStream out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5)
Format a message into an OutputStream. |
static void |
O(java.io.OutputStream out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.Object a6)
Format a message into an OutputStream. |
static void |
O(java.io.OutputStream out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.Object a6,
java.lang.Object[] more)
Deprecated. use O(OutputStream, String, Object[]) |
static java.lang.String |
S(java.lang.String control)
Format a message into a String. |
static java.lang.String |
S(java.lang.String control,
int i1)
Format a message into a String. |
static java.lang.String |
S(java.lang.String control,
java.lang.Object a1)
Format a message into a String. |
static java.lang.String |
S(java.lang.String control,
java.lang.Object[] args)
Format a message into a String. |
static java.lang.String |
S(java.lang.String control,
java.lang.Object a1,
java.lang.Object a2)
Format a message into a String. |
static java.lang.String |
S(java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3)
Format a message into a String. |
static java.lang.String |
S(java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4)
Format a message into a String. |
static java.lang.String |
S(java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5)
Format a message into a String. |
static java.lang.String |
S(java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.Object a6)
Format a message into a String. |
static java.lang.String |
S(java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.Object a6,
java.lang.Object[] more)
Deprecated. use S(String, Object[]) |
static java.lang.String |
safeEscapeSingleQuote(java.lang.String value)
Safe escape for single quotes, without doubling up on the escape. |
static java.lang.String |
Si(java.lang.String control,
java.util.List vectorArgs)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static java.lang.String |
Si(java.lang.String control,
java.lang.Object a1)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static java.lang.String |
Si(java.lang.String control,
java.lang.Object[] args)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static java.lang.String |
Si(java.lang.String control,
java.lang.Object a1,
java.lang.Object a2)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static java.lang.String |
Si(java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static java.lang.String |
Si(java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static java.lang.String |
Si(java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static java.lang.String |
Si(java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.Object a6)
An internationalized version of Fmt.S uses the java.text.MessageFormat style control string. |
static java.lang.String |
Si(java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.Object a6,
java.lang.Object[] more)
Deprecated. use Si(String, Object[]) |
static java.lang.String |
Sil(java.util.Locale locale,
java.lang.String stringTable,
java.lang.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 java.lang.String |
Sil(java.util.Locale locale,
java.lang.String stringTable,
java.lang.String key,
java.util.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 java.lang.String |
Sil(java.util.Locale locale,
java.lang.String stringTable,
java.lang.String key,
java.lang.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 java.lang.String |
Sil(java.util.Locale locale,
java.lang.String stringTable,
java.lang.String key,
java.lang.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 java.lang.String |
Sil(java.util.Locale locale,
java.lang.String stringTable,
java.lang.String key,
java.lang.Object a1,
java.lang.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 java.lang.String |
Sil(java.util.Locale locale,
java.lang.String stringTable,
java.lang.String key,
java.lang.Object a1,
java.lang.Object a2,
java.lang.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 java.lang.String |
Sil(java.util.Locale locale,
java.lang.String stringTable,
java.lang.String key,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.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 java.lang.String |
Sil(java.util.Locale locale,
java.lang.String stringTable,
java.lang.String key,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.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 java.lang.String |
Sil(java.util.Locale locale,
java.lang.String stringTable,
java.lang.String key,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.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 java.lang.String |
Sil(java.util.Locale locale,
java.lang.String stringTable,
java.lang.String key,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.Object a6,
java.lang.Object[] more)
Deprecated. use Sil(Locale, String, String, Object[]) |
static java.lang.String |
Sil(java.lang.String stringTable,
java.lang.String key)
Deprecated. use ariba.util.core.ResourceService.getString(String, String) |
static java.lang.String |
Sil(java.lang.String stringTable,
java.lang.String key,
java.util.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 java.lang.String |
Sil(java.lang.String stringTable,
java.lang.String key,
java.lang.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 java.lang.String |
Sil(java.lang.String stringTable,
java.lang.String key,
java.lang.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 java.lang.String |
Sil(java.lang.String stringTable,
java.lang.String key,
java.lang.Object a1,
java.lang.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 java.lang.String |
Sil(java.lang.String stringTable,
java.lang.String key,
java.lang.Object a1,
java.lang.Object a2,
java.lang.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 java.lang.String |
Sil(java.lang.String stringTable,
java.lang.String key,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.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 java.lang.String |
Sil(java.lang.String stringTable,
java.lang.String key,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.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 java.lang.String |
Sil(java.lang.String stringTable,
java.lang.String key,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.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 java.lang.String |
Sil(java.lang.String stringTable,
java.lang.String key,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.Object a6,
java.lang.Object[] more)
Deprecated. use Sil(String, String, Object[]) |
static java.lang.String |
singleQuote(java.lang.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 java.lang.String |
Sq(java.lang.String control,
java.lang.Object... args)
Vararg-based format function based on Fmt.S but escaping every string argument in the list |
static void |
W(java.io.Writer out,
java.lang.String control)
Formats a message onto a Writer . |
static void |
W(java.io.Writer out,
java.lang.String control,
java.lang.Object a1)
Formats a message onto a Writer . |
static void |
W(java.io.Writer out,
java.lang.String control,
java.lang.Object[] args)
Formats a message onto a Writer . |
static void |
W(java.io.Writer out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2)
Formats a message onto a Writer . |
static void |
W(java.io.Writer out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3)
Formats a message onto a Writer . |
static void |
W(java.io.Writer out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4)
Formats a message onto a Writer . |
static void |
W(java.io.Writer out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5)
Formats a message onto a Writer . |
static void |
W(java.io.Writer out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.Object a6)
Formats a message onto a Writer . |
static void |
W(java.io.Writer out,
java.lang.String control,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4,
java.lang.Object a5,
java.lang.Object a6,
java.lang.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 java.lang.Object Null
public static final java.lang.Object[] NoMore
public static final char SingleQuoteChar
public static final java.lang.String SingleQuoteString
public static final java.lang.String EscapedSingleQuoteString
Method Detail |
---|
public static FormatBuffer getBuffer()
public static void freeBuffer(FormatBuffer buf)
public static java.lang.String S(java.lang.String control)
control
- a String defining the format of the output
public static java.lang.String S(java.lang.String control, java.lang.Object a1)
control
- a String defining the format of the outputa1
- the first argument to the format string
control
public static java.lang.String S(java.lang.String control, int i1)
control
- a String defining the format of the outputi1
- an integer argument to the format string
control
public static java.lang.String S(java.lang.String control, java.lang.Object a1, java.lang.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 java.lang.String S(java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.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 java.lang.String S(java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.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 java.lang.String S(java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.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 java.lang.String S(java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.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 java.lang.String S(java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.Object a6, java.lang.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 java.lang.String S(java.lang.String control, java.lang.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(java.io.PrintWriter out, java.lang.String control)
out
- a PrintWriter to format the output intocontrol
- a String defining the format of the outputpublic static void F(java.io.PrintWriter out, java.lang.String control, java.lang.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
controlpublic static void F(java.io.PrintWriter out, java.lang.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
controlpublic static void F(java.io.PrintWriter out, java.lang.String control, java.lang.Object a1, java.lang.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
controlpublic static void F(java.io.PrintWriter out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.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
controlpublic static void F(java.io.PrintWriter out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.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
controlpublic static void F(java.io.PrintWriter out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.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
controlpublic static void F(java.io.PrintWriter out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.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
controlpublic static void F(java.io.PrintWriter out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.Object a6, java.lang.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(java.io.PrintWriter out, java.lang.String control, java.lang.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 controlpublic static void O(java.io.OutputStream out, java.lang.String control) throws java.io.IOException
out
- an OutputStream to format the output intocontrol
- a String defining the format of the output
java.io.IOException
- if there is a problem writing to the
OutputStream.public static void O(java.io.OutputStream out, java.lang.String control, java.lang.Object a1) throws java.io.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
java.io.IOException
- if there is a problem writing to the
OutputStream.public static void O(java.io.OutputStream out, java.lang.String control, java.lang.Object a1, java.lang.Object a2) throws java.io.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
java.io.IOException
- if there is a problem writing to the
OutputStream.public static void O(java.io.OutputStream out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3) throws java.io.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
java.io.IOException
- if there is a problem writing to the
OutputStream.public static void O(java.io.OutputStream out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4) throws java.io.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
java.io.IOException
- if there is a problem writing to the
OutputStream.public static void O(java.io.OutputStream out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5) throws java.io.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
java.io.IOException
- if there is a problem writing to the
OutputStream.public static void O(java.io.OutputStream out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.Object a6) throws java.io.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
java.io.IOException
- if there is a problem writing to the
OutputStream.public static void O(java.io.OutputStream out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.Object a6, java.lang.Object[] more) throws java.io.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.
java.io.IOException
- if there is a problem writing to the
OutputStream.public static void O(java.io.OutputStream out, java.lang.String control, java.lang.Object[] args) throws java.io.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
java.io.IOException
- if there is a problem writing to the
OutputStream.public static void W(java.io.Writer out, java.lang.String control) throws java.io.IOException
Writer
.
out
- a Writer to format the output intocontrol
- a String defining the format of the output
java.io.IOException
- if there is a problem writing to the
Writer.public static void W(java.io.Writer out, java.lang.String control, java.lang.Object a1) throws java.io.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
java.io.IOException
- if there is a problem writing to the
Writer.public static void W(java.io.Writer out, java.lang.String control, java.lang.Object a1, java.lang.Object a2) throws java.io.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
java.io.IOException
- if there is a problem writing to the
Writer.public static void W(java.io.Writer out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3) throws java.io.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
java.io.IOException
- if there is a problem writing to the
Writer.public static void W(java.io.Writer out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4) throws java.io.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
java.io.IOException
- if there is a problem writing to the
Writer.public static void W(java.io.Writer out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5) throws java.io.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
java.io.IOException
- if there is a problem writing to the
Writer.public static void W(java.io.Writer out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.Object a6) throws java.io.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
java.io.IOException
- if there is a problem writing to the
Writer.public static void W(java.io.Writer out, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.Object a6, java.lang.Object[] more) throws java.io.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.
java.io.IOException
- if there is a problem writing to the
Writer.public static void W(java.io.Writer out, java.lang.String control, java.lang.Object[] args) throws java.io.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
java.io.IOException
- if there is a problem writing to the
Writer.public static void B(FormatBuffer buf, java.lang.String control)
buf
- a FormatBuffer to format the output intocontrol
- a String defining the format of the outputpublic static void B(FormatBuffer buf, java.lang.String control, java.lang.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
controlpublic static void B(FormatBuffer buf, java.lang.String control, java.lang.Object a1, java.lang.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
controlpublic static void B(FormatBuffer buf, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.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
controlpublic static void B(FormatBuffer buf, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.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
controlpublic static void B(FormatBuffer buf, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.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
controlpublic static void B(FormatBuffer buf, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.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
controlpublic static void B(FormatBuffer buf, java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.Object a6, java.lang.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, java.lang.String control, java.lang.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 onepublic static java.lang.String Sil(java.lang.String stringTable, java.lang.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 java.lang.String Sil(java.lang.String stringTable, java.lang.String key, java.lang.Object a1)
stringTable
- resource string tablekey
- resource keya1
- object to be substituted
public static java.lang.String Sil(java.lang.String stringTable, java.lang.String key, java.lang.Object a1, java.lang.Object a2)
stringTable
- resource string tablekey
- resource keya1
- object to be substituteda2
- object to be substituted
public static java.lang.String Sil(java.lang.String stringTable, java.lang.String key, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3)
stringTable
- resource string tablekey
- resource keya1
- object to be substituteda2
- object to be substituteda3
- object to be substituted
public static java.lang.String Sil(java.lang.String stringTable, java.lang.String key, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.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 java.lang.String Sil(java.lang.String stringTable, java.lang.String key, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.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 java.lang.String Sil(java.lang.String stringTable, java.lang.String key, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.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 java.lang.String Sil(java.lang.String stringTable, java.lang.String key, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.Object a6, java.lang.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 java.lang.String Sil(java.lang.String stringTable, java.lang.String key, java.util.List vectorArgs)
stringTable
- resource string tablekey
- resource keyvectorArgs
- object arguments to be substituted
public static java.lang.String Sil(java.lang.String stringTable, java.lang.String key, java.lang.Object[] args)
stringTable
- resource string tablekey
- resource key, cannot be nullargs
- object arguments to be substituted
Si(String, Object[])
public static java.lang.String Sil(java.util.Locale locale, java.lang.String stringTable, java.lang.String key)
locale
- locale to be usedstringTable
- resource string tablekey
- resource key
public static java.lang.String Sil(java.util.Locale locale, java.lang.String stringTable, java.lang.String key, java.lang.Object a1)
locale
- locale to be usedstringTable
- resource string tablekey
- resource keya1
- object to be substituted
public static java.lang.String Sil(java.util.Locale locale, java.lang.String stringTable, java.lang.String key, java.lang.Object a1, java.lang.Object a2)
locale
- locale to be usedstringTable
- resource string tablekey
- resource keya1
- object to be substituteda2
- object to be substituted
public static java.lang.String Sil(java.util.Locale locale, java.lang.String stringTable, java.lang.String key, java.lang.Object a1, java.lang.Object a2, java.lang.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 java.lang.String Sil(java.util.Locale locale, java.lang.String stringTable, java.lang.String key, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.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 java.lang.String Sil(java.util.Locale locale, java.lang.String stringTable, java.lang.String key, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.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 java.lang.String Sil(java.util.Locale locale, java.lang.String stringTable, java.lang.String key, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.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 java.lang.String Sil(java.util.Locale locale, java.lang.String stringTable, java.lang.String key, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.Object a6, java.lang.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 java.lang.String Sil(java.util.Locale locale, java.lang.String stringTable, java.lang.String key, java.util.List vectorArgs)
locale
- locale to be usedstringTable
- resource string tablekey
- resource keyvectorArgs
- object arguments to be substituted
public static java.lang.String Sil(java.util.Locale locale, java.lang.String stringTable, java.lang.String key, java.lang.Object[] args)
locale
- locale to be usedstringTable
- resource string tablekey
- resource keyargs
- object arguments to be substituted
public static java.lang.String Si(java.lang.String control, java.lang.Object a1)
control
- MessageFormat style patterna1
- object to be substituted
public static java.lang.String Si(java.lang.String control, java.lang.Object a1, java.lang.Object a2)
control
- MessageFormat style patterna1
- object to be substituteda2
- object to be substituted
public static java.lang.String Si(java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3)
control
- MessageFormat style patterna1
- object to be substituteda2
- object to be substituteda3
- object to be substituted
public static java.lang.String Si(java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4)
control
- MessageFormat style patterna1
- object to be substituteda2
- object to be substituteda3
- object to be substituteda4
- object to be substituted
public static java.lang.String Si(java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.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 java.lang.String Si(java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.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 java.lang.String Si(java.lang.String control, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4, java.lang.Object a5, java.lang.Object a6, java.lang.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 java.lang.String Si(java.lang.String control, java.util.List vectorArgs)
control
- MessageFormat style patternvectorArgs
- object arguments to be substituted
public static java.lang.String Si(java.lang.String control, java.lang.Object[] args)
format(String, Object[])
method.
control
- MessageFormat style patternargs
- object arguments to be substituted
MessageFormat.format(String, Object[])
public static java.lang.String Sq(java.lang.String control, java.lang.Object... args)
control
- control string determining format of the outputargs
- varargs list of arguments
public static void Bq(FormatBuffer buffer, java.lang.String control, java.lang.Object... args)
buffer
- FormatBuffer into which the formatted string is outputcontrol
- control string determining format of the outputargs
- varargs list of argumentspublic static java.lang.String escapeSingleQuote(java.lang.String value)
value
- a string whose single quotes need escaping.
public static java.lang.String safeEscapeSingleQuote(java.lang.String value)
public static java.lang.String singleQuote(java.lang.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 |