gnu.text
public abstract class ReportFormat extends Format
Field Summary | |
---|---|
static int | PARAM_FROM_COUNT Some Formats use this to indicate a parameter that is the
number of remaining paramaters. |
static int | PARAM_FROM_LIST Some Formats use this to indicate a parameter that is the
extracted from the argment list. |
static int | PARAM_UNSPECIFIED Some Formats use this to indicate an unspecified parameter. |
Method Summary | |
---|---|
abstract int | format(Object[] args, int start, Writer dst, FieldPosition fpos) Format an array of arguments, and write out the result. |
int | format(Object arg, int start, Writer dst, FieldPosition fpos) |
StringBuffer | format(Object obj, StringBuffer sbuf, FieldPosition fpos) |
int | format(Object[] args, int start, StringBuffer sbuf, FieldPosition fpos) |
static int | format(Format fmt, Object[] args, int start, Writer dst, FieldPosition fpos) |
static int | format(Format fmt, Object[] args, int start, StringBuffer sbuf, FieldPosition fpos) |
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) |
static int | nextArg(int result) |
Object | parseObject(String text, ParsePosition status) |
static void | print(Writer dst, String str) (Parameters in non-standard order.) |
static void | print(Object value, Consumer out) |
static int | result(int resultCode, int nextArg) |
static int | resultCode(int result) |
Parameters: dst where to write the result args the objects to be formatted start the index (in args) of the argument to start with
Returns: an integer result(resultCode, nextArg), where nextArg is the index following the last argument processed, and code is a result code (normally 0, or negative if early termintation)