gnu.text
Class LiteralFormat

java.lang.Object
  extended by java.text.Format
      extended by gnu.text.ReportFormat
          extended by gnu.text.LiteralFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class LiteralFormat
extends ReportFormat

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.Format
java.text.Format.Field
 
Field Summary
 
Fields inherited from class gnu.text.ReportFormat
PARAM_FROM_COUNT, PARAM_FROM_LIST, PARAM_UNSPECIFIED
 
Constructor Summary
LiteralFormat(char[] text)
           
LiteralFormat(java.lang.String text)
           
LiteralFormat(java.lang.StringBuffer sbuf)
           
 
Method Summary
 java.lang.String content()
          Return the text that would be printed by the format.
 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, format, getParam, getParam, getParam, nextArg, print, 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
 

Constructor Detail

LiteralFormat

public LiteralFormat(char[] text)

LiteralFormat

public LiteralFormat(java.lang.String text)

LiteralFormat

public LiteralFormat(java.lang.StringBuffer sbuf)
Method Detail

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 formatted
start - the index (in args) of the argument to start with
dst - 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

parseObject

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

content

public java.lang.String content()
Return the text that would be printed by the format.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object