gnu.text
Class PadFormat
Given a Format, pad the formatted result to a specified width.
PadFormat(Format fmt, int minWidth)
|
PadFormat(Format fmt, int minWidth, char padChar, int where)
|
static int | format(Format fmt, Object[] args, int start, Writer dst, char padChar, int minWidth, int colInc, int minPad, int where, FieldPosition fpos)
|
int | format(Object[] args, int start, Writer dst, FieldPosition fpos) - Format an array of arguments, and write out the result.
|
static int | padNeeded(int actualWidth, int minWidth, int colInc, int minPad)
|
format , format , format , format , format , format , getParam , getParam , getParam , nextArg , parseObject , print , print , result , resultCode |
PadFormat
public PadFormat(Format fmt,
int minWidth)
PadFormat
public PadFormat(Format fmt,
int minWidth,
char padChar,
int where)
format
public static int format(Format fmt,
Object[] args,
int start,
Writer dst,
char padChar,
int minWidth,
int colInc,
int minPad,
int where,
FieldPosition fpos)
throws java.io.IOException
format
public int format(Object[] args,
int start,
Writer dst,
FieldPosition fpos)
throws java.io.IOException
Format 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)
padNeeded
public static int padNeeded(int actualWidth,
int minWidth,
int colInc,
int minPad)