All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.trumphurst.utils.StringFormat

java.lang.Object
   |
   +----java.text.Format
           |
           +----java.text.MessageFormat
                   |
                   +----com.trumphurst.utils.StringFormat

public class StringFormat
extends MessageFormat

Constructor Index

 o StringFormat(String[], String)
Main constructor

Method Index

 o applyPattern(String)
 o format(String, String[], Object[])
Convenience routine.

Constructors

 o StringFormat
 public StringFormat(String names[],
                     String pattern)
Main constructor

Parameters:
names - List of names of the arguments.
pattern - The message pattern.

Methods

 o applyPattern
 public void applyPattern(String newPattern)
Overrides:
applyPattern in class MessageFormat
 o format
 public static String format(String pattern,
                             String names[],
                             Object arguments[])
Convenience routine. Avoids explicit creation of StringFormat, but doesn't allow future optimizations.


All Packages  Class Hierarchy  This Package  Previous  Next  Index