public class CompoundFormat extends ReportFormat
Modifier and Type | Field and Description |
---|---|
protected java.text.Format[] |
formats |
protected int |
length |
PARAM_FROM_COUNT, PARAM_FROM_LIST, PARAM_UNSPECIFIED
Constructor and Description |
---|
CompoundFormat(java.text.Format[] formats) |
CompoundFormat(java.text.Format[] formats,
int length) |
Modifier and Type | Method and Description |
---|---|
int |
format(java.lang.Object[] args,
int start,
java.lang.StringBuffer sbuf,
java.text.FieldPosition fpos) |
int |
format(java.lang.Object[] args,
int start,
java.io.Writer dst,
java.text.FieldPosition fpos)
Format an array of arguments, and write out the result.
|
java.lang.Object |
parseObject(java.lang.String text,
java.text.ParsePosition status) |
java.lang.String |
toString() |
public CompoundFormat(java.text.Format[] formats, int length)
public CompoundFormat(java.text.Format[] formats)
public int format(java.lang.Object[] args, int start, java.io.Writer dst, java.text.FieldPosition fpos) throws java.io.IOException
ReportFormat
format
in class 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 final int format(java.lang.Object[] args, int start, java.lang.StringBuffer sbuf, java.text.FieldPosition fpos)
format
in class ReportFormat
public java.lang.Object parseObject(java.lang.String text, java.text.ParsePosition status)
parseObject
in class ReportFormat
public java.lang.String toString()
toString
in class java.lang.Object