| java.lang.Object java.text.Format gnu.text.ReportFormat
All known Subclasses: gnu.text.PadFormat, gnu.text.LiteralFormat, gnu.text.CompoundFormat, gnu.text.CaseConvertFormat, gnu.text.IntegerFormat, gnu.kawa.functions.ObjectFormat, gnu.text.FlushFormat,
ReportFormat | abstract public class ReportFormat extends Format (Code) | | |
Field Summary | |
final public static int | PARAM_FROM_COUNT Some Formats use this to indicate a parameter that is the
number of remaining paramaters. | final public static int | PARAM_FROM_LIST Some Formats use this to indicate a parameter that is the
extracted from the argment list. | final public static int | PARAM_UNSPECIFIED Some Formats use this to indicate an unspecified parameter. |
Method Summary | |
abstract public int | format(Object[] args, int start, Writer dst, FieldPosition fpos) Format an array of arguments, and write out the result. | public int | format(Object arg, int start, Writer dst, FieldPosition fpos) | public StringBuffer | format(Object obj, StringBuffer sbuf, FieldPosition fpos) | public int | format(Object[] args, int start, StringBuffer sbuf, FieldPosition fpos) | public static int | format(Format fmt, Object[] args, int start, Writer dst, FieldPosition fpos) | public static int | format(Format fmt, Object[] args, int start, StringBuffer sbuf, FieldPosition fpos) | public static int | getParam(Object arg, int defaultValue) | protected static int | getParam(int param, int defaultValue, Object[] args, int start) | protected static char | getParam(int param, char defaultValue, Object[] args, int start) | public static int | nextArg(int result) | public Object | parseObject(String text, java.text.ParsePosition status) | public static void | print(Writer dst, String str) | public static void | print(Object value, Consumer out) | public static int | result(int resultCode, int nextArg) | public static int | resultCode(int result) |
PARAM_FROM_COUNT | final public static int PARAM_FROM_COUNT(Code) | | Some Formats use this to indicate a parameter that is the
number of remaining paramaters.
|
PARAM_FROM_LIST | final public static int PARAM_FROM_LIST(Code) | | Some Formats use this to indicate a parameter that is the
extracted from the argment list.
|
PARAM_UNSPECIFIED | final public static int PARAM_UNSPECIFIED(Code) | | Some Formats use this to indicate an unspecified parameter.
|
format | abstract public int format(Object[] args, int start, Writer dst, FieldPosition fpos) throws java.io.IOException(Code) | | Format an array of arguments, and write out the result.
Parameters: dst - where to write the result Parameters: args - the objects to be formatted Parameters: start - the index (in args) of the argument to start with an integer result(resultCode, nextArg), wherenextArg is the index following the last argument processed, andcode is a result code (normally 0, or negative if early termintation) |
getParam | public static int getParam(Object arg, int defaultValue)(Code) | | |
getParam | protected static int getParam(int param, int defaultValue, Object[] args, int start)(Code) | | |
getParam | protected static char getParam(int param, char defaultValue, Object[] args, int start)(Code) | | |
nextArg | public static int nextArg(int result)(Code) | | |
result | public static int result(int resultCode, int nextArg)(Code) | | |
resultCode | public static int resultCode(int result)(Code) | | |
|
|