koala.dynamicjava.util
Class LocalizedMessageReader

java.lang.Object
  |
  +--koala.dynamicjava.util.LocalizedMessageReader

public class LocalizedMessageReader
extends java.lang.Object

The instances of this class read localized messages in resource files. The messages in the file are templates. Context specific strings are inserted where '%n' patterns can be found. A '%' character is represented with '%%'.


Constructor Summary
LocalizedMessageReader(java.lang.String name)
          Creates a new message reader
 
Method Summary
 java.lang.String getMessage(java.lang.String key, java.lang.String[] strings)
          Gets a message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizedMessageReader

public LocalizedMessageReader(java.lang.String name)
Creates a new message reader
Parameters:
name - the name of the resource
Method Detail

getMessage

public java.lang.String getMessage(java.lang.String key,
                                   java.lang.String[] strings)
Gets a message
Parameters:
key - the message key
strings - the strings to insert in the message


Copyright © 2001 Stephane Hillion. All Rights Reserved.