public class ObjectFormat
extends gnu.kawa.format.ReportFormat
Constructor and Description |
---|
ObjectFormat(boolean readable) |
ObjectFormat(boolean readable,
int maxChars) |
Modifier and Type | Method and Description |
---|---|
int |
format(java.lang.Object[] args,
int start,
java.lang.Appendable dst,
java.text.FieldPosition fpos)
Format an array of arguments, and write out the result.
|
static int |
format(java.lang.Object[] args,
int start,
java.lang.Appendable dst,
int maxChars,
boolean readable) |
static boolean |
format(java.lang.Object arg,
java.lang.Appendable dst,
int maxChars,
boolean readable)
Return false iff truncation.
|
static ObjectFormat |
getInstance(boolean readable) |
java.lang.Object |
parseObject(java.lang.String text,
java.text.ParsePosition status) |
public ObjectFormat(boolean readable)
public ObjectFormat(boolean readable, int maxChars)
public static ObjectFormat getInstance(boolean readable)
public int format(java.lang.Object[] args, int start, java.lang.Appendable dst, java.text.FieldPosition fpos) throws java.io.IOException
gnu.kawa.format.ReportFormat
format
in class gnu.kawa.format.ReportFormat
args
- the objects to be formattedstart
- the index (in args) of the argument to start withdst
- where to write the resultjava.io.IOException
public static boolean format(java.lang.Object arg, java.lang.Appendable dst, int maxChars, boolean readable) throws java.io.IOException
maxChars
- maximum number of characters; -1 means unlimitedjava.io.IOException
public static int format(java.lang.Object[] args, int start, java.lang.Appendable dst, int maxChars, boolean readable) throws java.io.IOException
java.io.IOException
public java.lang.Object parseObject(java.lang.String text, java.text.ParsePosition status)
parseObject
in class gnu.kawa.format.ReportFormat