gnu.text
Class CompoundFormat
java.lang.Object
java.text.Format
gnu.text.ReportFormat
gnu.text.CompoundFormat
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- LispFormat
public class CompoundFormat
- extends ReportFormat
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.text.Format |
java.text.Format.Field |
Field Summary |
protected java.text.Format[] |
formats
|
protected int |
length
|
Method Summary |
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()
|
Methods inherited from class gnu.text.ReportFormat |
format, format, format, format, getParam, getParam, getParam, nextArg, print, result, resultCode |
Methods inherited from class java.text.Format |
clone, format, formatToCharacterIterator, parseObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
length
protected int length
formats
protected java.text.Format[] formats
CompoundFormat
public CompoundFormat(java.text.Format[] formats,
int length)
CompoundFormat
public CompoundFormat(java.text.Format[] formats)
format
public int format(java.lang.Object[] args,
int start,
java.io.Writer dst,
java.text.FieldPosition fpos)
throws java.io.IOException
- Description copied from class:
ReportFormat
- Format an array of arguments, and write out the result.
- Specified by:
format
in class ReportFormat
- Parameters:
args
- the objects to be formattedstart
- the index (in args) of the argument to start withdst
- where to write the result
- Returns:
- 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)
- Throws:
java.io.IOException
format
public final int format(java.lang.Object[] args,
int start,
java.lang.StringBuffer sbuf,
java.text.FieldPosition fpos)
- Overrides:
format
in class ReportFormat
parseObject
public java.lang.Object parseObject(java.lang.String text,
java.text.ParsePosition status)
- Overrides:
parseObject
in class ReportFormat
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object