net.sf.fikin.pojostate.format
Class DecoratedMessageFormat

java.lang.Object
  extended by java.text.Format
      extended by net.sf.fikin.pojostate.format.DecoratedMessageFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class DecoratedMessageFormat
extends java.text.Format

Decorates java.text.MessageFormat.format(Object) with ability to pass single String (original method expects an array). created on Jul 6, 2005

Since:
Version:
$Revision: 1.1 $
Author:
fiykov
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.Format
java.text.Format.Field
 
Constructor Summary
DecoratedMessageFormat(java.lang.String pattern)
           
DecoratedMessageFormat(java.lang.String pattern, java.util.Locale locale)
           
 
Method Summary
 java.lang.StringBuffer format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
           
 java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos)
           
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoratedMessageFormat

public DecoratedMessageFormat(java.lang.String pattern)

DecoratedMessageFormat

public DecoratedMessageFormat(java.lang.String pattern,
                              java.util.Locale locale)
Method Detail

parseObject

public java.lang.Object parseObject(java.lang.String source,
                                    java.text.ParsePosition pos)
Specified by:
parseObject in class java.text.Format

format

public java.lang.StringBuffer format(java.lang.Object obj,
                                     java.lang.StringBuffer toAppendTo,
                                     java.text.FieldPosition pos)
Specified by:
format in class java.text.Format


Copyright © 2005 Nikolay Fiykov. All Rights Reserved.