|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.misc.Format
| Constructor Summary | |
Format(String s)
Formats a number in a printf format, like C |
|
| Method Summary | |
static double |
atof(String s)
Converts a string of digits to an double |
static int |
atoi(String s)
Converts a string of digits (decimal, octal or hex) to an integer |
static long |
atol(String s)
Converts a string of digits (decimal, octal or hex) to a long integer |
String |
form(char c)
Formats a character into a string (like sprintf in C) |
String |
form(double x)
Formats a double into a string (like sprintf in C) |
String |
form(long x)
Formats a long integer into a string (like sprintf in C) |
String |
form(String s)
Formats a string into a larger string (like sprintf in C) |
static void |
print(PrintStream s,
String fmt,
char x)
prints a formatted number following printf conventions |
static void |
print(PrintStream s,
String fmt,
double x)
prints a formatted number following printf conventions |
static void |
print(PrintStream s,
String fmt,
long x)
prints a formatted number following printf conventions |
static void |
print(PrintStream s,
String fmt,
String x)
prints a formatted number following printf conventions |
static void |
print(PrintWriter s,
String fmt,
double x)
prints a formatted number following printf conventions |
static void |
print(PrintWriter s,
String fmt,
String x)
prints a formatted number following printf conventions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Format(String s)
s - the format string following printf format string
The string has a prefix, a format code and a suffix. The prefix and suffix
become part of the formatted output. The format code directs the
formatting of the (single) parameter to be formatted. The code has the
following structure
| Method Detail |
public static double atof(String s)
s - a string
public static int atoi(String s)
s - a string
public static long atol(String s)
s - a string
public String form(char c)
c - the value to format
public String form(double x)
x - the number to format
public String form(long x)
x - the number to format
public String form(String s)
s - the value to format
public static void print(PrintStream s,
String fmt,
char x)
s - a PrintStreamfmt - the format stringx - the character to
public static void print(PrintStream s,
String fmt,
double x)
s - a PrintStreamfmt - the format stringx - the double to print
public static void print(PrintStream s,
String fmt,
long x)
s - a PrintStreamfmt - the format stringx - the long to print
public static void print(PrintStream s,
String fmt,
String x)
s - a PrintStream, fmt the format stringfmt - x - a string that represents the digits to print
public static void print(PrintWriter s,
String fmt,
double x)
s - a PrintStreamfmt - the format stringx - the double to print
public static void print(PrintWriter s,
String fmt,
String x)
s - a PrintStream, fmt the format stringfmt - x - a string that represents the digits to print
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||