gnu.kawa.functions
Class ObjectFormat
public class ObjectFormat
static boolean | format(Object arg, Writer dst, int maxChars, boolean readable)- Return false iff truncation.
|
int | format(Object[] args, int start, Writer dst, FieldPosition fpos)- Format an array of arguments, and write out the result.
|
static int | format(Object[] args, int start, Writer dst, int maxChars, boolean readable)
|
static ObjectFormat | getInstance(boolean readable)
|
Object | parseObject(String text, java.text.ParsePosition status)
|
format, format, format, format, format, format, getParam, getParam, getParam, nextArg, parseObject, print, result, resultCode |
ObjectFormat
public ObjectFormat(boolean readable)
ObjectFormat
public ObjectFormat(boolean readable,
int maxChars)
format
public static boolean format(Object arg,
Writer dst,
int maxChars,
boolean readable)
throws java.io.IOException Return false iff truncation.
maxChars - maximum number of characters; -1 means unlimited
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)
format
public static int format(Object[] args,
int start,
Writer dst,
int maxChars,
boolean readable)
throws java.io.IOException
getInstance
public static ObjectFormat getInstance(boolean readable)
parseObject
public Object parseObject(String text,
java.text.ParsePosition status)- parseObject in interface ReportFormat