gnu.text
Class CaseConvertFormat
public class CaseConvertFormat
Get the index'th parameter for the conversion specification specs[speci].
Note that parameters are numbered from 1 to numParams(speci).
The list of arguments to be converted is args, with the current index
(as of the start of this conversion, i.e. not taking into account
earlier PARAM_FROM_LIST paramaters for this conversion) in start.
The default value (used if PARAM_UNSPECIFIED) is defaultValue.
int | format(Object[] args, int start, Writer dst, FieldPosition fpos)- Format an array of arguments, and write out the result.
|
Format | getBaseFormat()
|
void | setBaseFormat(Format baseFormat)
|
format, format, format, format, format, format, getParam, getParam, getParam, nextArg, parseObject, print, result, resultCode |
CaseConvertFormat
public CaseConvertFormat(Format baseFormat,
char action)
format
public int format(Object[] args,
int start,
Writer dst,
FieldPosition fpos)
throws java.io.IOExceptionFormat an array of arguments, and write out the result.
- format in interface ReportFormat
args - the objects to be formattedstart - the index (in args) of the argument to start withdst - where to write the result
- 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)
getBaseFormat
public Format getBaseFormat()
setBaseFormat
public void setBaseFormat(Format baseFormat)