|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.fw.util.EboFormat
The EboFormat class provides static helper methods to format long, double, date, time and datetime objects. Please see the JDK documentation of NumberFormat, DateFormat, DecimalFormat, SimpleDateFormat for more details.
Note that expontial notation is not currently supported for BigDecimals.
Field Summary | |
static int |
CURRENCYSTYLE
The currency style for the style parameters of the format methods. |
static int |
DEFAULT
The default style for the style parameter of the format methods. |
static int |
FULL
The full style for the style parameter of the format methods. |
static int |
LONG
The long style for the style parameter of the format methods. |
static int |
NUMBERSTYLE
The number style for the style parameters of the format methods. |
static int |
PERCENTSTYLE
The percent style for the style parameter of the format methods. |
static int |
SHORT
The short style for the style parameter of the format methods. |
static int |
SHORT4
The short4 style for the style parameter of the format methods. |
Constructor Summary | |
EboFormat()
|
Method Summary | |
static String |
format(Object ob,
String pattern)
Format an object and produce formatted output string. |
static String |
format(Object ob,
String pattern,
int style)
Format an object and produce formatted output string. |
static String |
format(Object ob,
String pattern,
int timeStyle,
int dateStyle)
Format an object and produce formatted output string. |
static String |
format(Object ob,
String pattern,
int style1,
int style2,
Locale locale,
String zoneStr)
Format an object and produce formatted output string. |
static String |
format(Object ob,
String pattern,
int style1,
int style2,
String lang,
String country,
String variant,
String zoneStr)
Format an object and produce formatted output string. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int NUMBERSTYLE
public static final int CURRENCYSTYLE
public static final int PERCENTSTYLE
public static final int DEFAULT
public static final int SHORT
public static final int SHORT4
public static final int LONG
public static final int FULL
Constructor Detail |
public EboFormat()
Method Detail |
public static String format(Object ob, String pattern)
ob
- - object, can be Long, Double, java.sql.Date, java.util.Date, Time or Timestamp, java.util.Calendar, java.math.BigDecimalpattern
- - string, overrides default patternpublic static String format(Object ob, String pattern, int style)
ob
- - object, can be Long, Double, java.sql.Date, java.util.Date, Time or Timestamp, java.util.Calendar, java.math.BigDecimalpattern
- - string, overrides default patternstyle
- - overrides default stylepublic static String format(Object ob, String pattern, int timeStyle, int dateStyle)
ob
- - object, Timestamp onlypattern
- - string, overrides default patterntimeStyle
- - int, overrides default style for timedateStyle
- - int, overrides default style for datepublic static String format(Object ob, String pattern, int style1, int style2, String lang, String country, String variant, String zoneStr)
ob
- - object, can be Date or Timepattern
- - string, overrides default patternstyle1
- - int, overrides default stylestyle2
- - int, overrides default style (used for Timestamp)lang
- - string, overrides default language (part of Locale)country
- - string, overrides default country (part of locale)variant
- - string, overrides default variant (part of locale)zoneStr
- - timezone, overrides default timezone (empty string or null for Date)public static String format(Object ob, String pattern, int style1, int style2, Locale locale, String zoneStr)
ob
- - object, can be Date or Timepattern
- - string, overrides default patternstyle1
- - int, overrides default stylestyle2
- - int, overrides default style (used for Timestamp)locale
- - java.util.locale, overrides default localezoneStr
- - timezone, overrides default timezone (empty string or null for Date)
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |