| java.lang.Object java.text.Format gnu.text.ReportFormat gnu.text.PadFormat
PadFormat | public class PadFormat extends ReportFormat (Code) | | Given a Format, pad the formatted result to a specified width.
|
Field Summary | |
Format | fmt | int | minWidth Minimum width. | char | padChar | int | where What percentage of padding appears after the data.
-1 means internal padding (after initial '-' or '+' or '0x' or '0X'). |
Method Summary | |
public int | format(Object[] args, int start, Writer dst, FieldPosition fpos) | public static int | format(Format fmt, Object[] args, int start, Writer dst, char padChar, int minWidth, int colInc, int minPad, int where, FieldPosition fpos) | public static int | padNeeded(int actualWidth, int minWidth, int colInc, int minPad) |
minWidth | int minWidth(Code) | | Minimum width.
|
where | int where(Code) | | What percentage of padding appears after the data.
-1 means internal padding (after initial '-' or '+' or '0x' or '0X').
|
PadFormat | public PadFormat(Format fmt, int minWidth, char padChar, int where)(Code) | | |
padNeeded | public static int padNeeded(int actualWidth, int minWidth, int colInc, int minPad)(Code) | | |
Methods inherited from gnu.text.ReportFormat | abstract public int format(Object[] args, int start, Writer dst, FieldPosition fpos) throws java.io.IOException(Code)(Java Doc) public int format(Object arg, int start, Writer dst, FieldPosition fpos) throws java.io.IOException(Code)(Java Doc) public StringBuffer format(Object obj, StringBuffer sbuf, FieldPosition fpos)(Code)(Java Doc) public int format(Object[] args, int start, StringBuffer sbuf, FieldPosition fpos)(Code)(Java Doc) public static int format(Format fmt, Object[] args, int start, Writer dst, FieldPosition fpos) throws java.io.IOException(Code)(Java Doc) public static int format(Format fmt, Object[] args, int start, StringBuffer sbuf, FieldPosition fpos)(Code)(Java Doc) public static int getParam(Object arg, int defaultValue)(Code)(Java Doc) protected static int getParam(int param, int defaultValue, Object[] args, int start)(Code)(Java Doc) protected static char getParam(int param, char defaultValue, Object[] args, int start)(Code)(Java Doc) public static int nextArg(int result)(Code)(Java Doc) public Object parseObject(String text, java.text.ParsePosition status)(Code)(Java Doc) public static void print(Writer dst, String str) throws java.io.IOException(Code)(Java Doc) public static void print(Object value, Consumer out)(Code)(Java Doc) public static int result(int resultCode, int nextArg)(Code)(Java Doc) public static int resultCode(int result)(Code)(Java Doc)
|
|
|