cds.util
Class ParsedFormat

java.lang.Object
  extended bycds.util.ParsedFormat

class ParsedFormat
extends java.lang.Object

The parsed version of a format string. Contains a list of String's and FieldFormat's.

Author:
Tony Plate tplate@attglobal.net Copyright 1999,2000 Tony Plate

Field Summary
(package private)  java.util.Vector field
           
(package private)  java.lang.String format
           
 
Constructor Summary
(package private) ParsedFormat(java.lang.String formatStr)
          Creator -- parses a format string.
 
Method Summary
 int hashCode()
          hashCode() -- return the hash code of the format string
(package private)  java.lang.String remainder(int i)
          Reconstruct the format string from the i'th format component onwards
(package private)  java.lang.String sprintf(VarArgs args)
          sprintf(CParams args) -- print the args according to the format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

format

java.lang.String format

field

java.util.Vector field
Constructor Detail

ParsedFormat

ParsedFormat(java.lang.String formatStr)
       throws java.io.IOException
Creator -- parses a format string.

Method Detail

hashCode

public int hashCode()
hashCode() -- return the hash code of the format string


sprintf

java.lang.String sprintf(VarArgs args)
                   throws CFormatArgException
sprintf(CParams args) -- print the args according to the format. Must exactly use the args

Throws:
CFormatArgException

remainder

java.lang.String remainder(int i)
Reconstruct the format string from the i'th format component onwards