★ wanayoo — archive 1999 http://sourceware.cygnus.com/kawa/api/gnu/text/ReportFormat.htmlNouvelle recherche | Portail wanayoo

gnu.text
Class ReportFormat

java.lang.Object
  |
  +--java.text.Format
        |
        +--gnu.text.ReportFormat
Direct Known Subclasses:
CaseConvertFormat, CompoundFormat, FlushFormat, LiteralFormat, ObjectFormat, PadFormat

public abstract class ReportFormat
extends java.text.Format

See Also:
Serialized Form

Constructor Summary
ReportFormat()
           
 
Method Summary
static int format(java.text.Format fmt, java.lang.Object[] args, int start, java.lang.StringBuffer sbuf, java.text.FieldPosition fpos)
           
static int format(java.text.Format fmt, java.lang.Object[] args, int start, java.io.Writer dst, java.text.FieldPosition fpos)
           
 int format(java.lang.Object[] args, int start, java.lang.StringBuffer sbuf, java.text.FieldPosition fpos)
           
abstract  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.StringBuffer format(java.lang.Object obj, java.lang.StringBuffer sbuf, java.text.FieldPosition fpos)
           
static int nextArg(int result)
           
 java.lang.Object parseObject(java.lang.String text, java.text.ParsePosition status)
           
static void print(java.io.Writer dst, java.lang.String str)
           
static int result(int resultCode, int nextArg)
           
static int resultCode(int result)
           
 
Methods inherited from class java.text.Format
clone, format, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportFormat

public ReportFormat()
Method Detail

result

public static int result(int resultCode,
                         int nextArg)

nextArg

public static int nextArg(int result)

resultCode

public static int resultCode(int result)

format

public abstract int format(java.lang.Object[] args,
                           int start,
                           java.io.Writer dst,
                           java.text.FieldPosition fpos)
                    throws java.io.IOException
Format an array of arguments, and write out the result.
Parameters:
dst - where to write the result
args - the objets to be formatted
start - the index (in args) of the argument to start with
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

format

public java.lang.StringBuffer format(java.lang.Object obj,
                                     java.lang.StringBuffer sbuf,
                                     java.text.FieldPosition fpos)
Overrides:
format in class java.text.Format

format

public int format(java.lang.Object[] args,
                  int start,
                  java.lang.StringBuffer sbuf,
                  java.text.FieldPosition fpos)

format

public static int format(java.text.Format fmt,
                         java.lang.Object[] args,
                         int start,
                         java.io.Writer dst,
                         java.text.FieldPosition fpos)
                  throws java.io.IOException

format

public static int format(java.text.Format fmt,
                         java.lang.Object[] args,
                         int start,
                         java.lang.StringBuffer sbuf,
                         java.text.FieldPosition fpos)

print

public static void print(java.io.Writer dst,
                         java.lang.String str)
                  throws java.io.IOException

parseObject

public java.lang.Object parseObject(java.lang.String text,
                                    java.text.ParsePosition status)
Overrides:
parseObject in class java.text.Format