public class ObjectFormat extends ReportFormat
PARAM_FROM_COUNT, PARAM_FROM_LIST, PARAM_UNSPECIFIED| 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
ReportFormatformat in class ReportFormatargs - the objects to be formattedstart - the index (in args) of the argument to start withdst - where to write the resultjava.io.IOExceptionpublic 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.IOExceptionpublic static int format(java.lang.Object[] args,
int start,
java.lang.Appendable dst,
int maxChars,
boolean readable)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object parseObject(java.lang.String text,
java.text.ParsePosition status)
parseObject in class ReportFormat