net.sf.fikin.pojostate.format
Class DecoratedMessageFormat
java.lang.Object
java.text.Format
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 classes/interfaces inherited from class java.text.Format |
java.text.Format.Field |
|
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 |
DecoratedMessageFormat
public DecoratedMessageFormat(java.lang.String pattern)
DecoratedMessageFormat
public DecoratedMessageFormat(java.lang.String pattern,
java.util.Locale locale)
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.