public class LiteralFormat extends ReportFormat
| Modifier and Type | Field and Description |
|---|---|
static LiteralFormat |
separator
A literal empty string.
|
PARAM_FROM_COUNT, PARAM_FROM_LIST, PARAM_UNSPECIFIED| Constructor and Description |
|---|
LiteralFormat(char[] text) |
LiteralFormat(java.lang.String text) |
LiteralFormat(java.lang.StringBuffer sbuf) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
content()
Return the text that would be printed by the format.
|
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.
|
java.lang.Object |
parseObject(java.lang.String text,
java.text.ParsePosition status) |
java.lang.String |
toString() |
public static final LiteralFormat separator
public LiteralFormat(char[] text)
public LiteralFormat(java.lang.String text)
public LiteralFormat(java.lang.StringBuffer sbuf)
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 java.lang.Object parseObject(java.lang.String text,
java.text.ParsePosition status)
parseObject in class ReportFormatpublic java.lang.String content()
public java.lang.String toString()
toString in class java.lang.Object