|
Sharkysoft home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lava.clib.stdio.Printf
Formats strings of text and data.
Details: Printf
provides the versatile text- and data-printf
function. Printf has just one (overloaded) static method, format
, which requires two parameters: a format string (i.e., formatting template), and an argument list (data which will be formatted by the template). Although this class faithfully reproduces the behavior of C's printf function, it also offers additional formatting options which are not available in the C version.
This class implements the Lava Printf for Java printf format string specification. For complete details about what this means, please refer to that document. Additional information can be found in Printf for Java.
PrintfFormatString
,
Va_list
,
Stdio
Method Summary | |
static java.lang.String |
format(PrintfFormatString format,
java.lang.Object[] args)
Formats data and text using a precompiled format string. |
static java.lang.String |
format(java.lang.String format)
|
static java.lang.String |
format(java.lang.String format,
java.lang.Object[] args)
Formats data and text using an uncompiled format string. |
static java.lang.String |
format(java.lang.String format,
Va_list args)
Formats data and text using an uncompiled format string. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static java.lang.String format(java.lang.String format, Va_list args)
format
- the format stringargs
- argument listpublic static java.lang.String format(java.lang.String format, java.lang.Object[] args)
format
- the format stringargs
- argument listpublic static java.lang.String format(java.lang.String format)
public static java.lang.String format(PrintfFormatString format, java.lang.Object[] args)
format
- the format stringargs
- argument list
|
Sharkysoft home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |