koala.dynamicjava.util
Class LocalizedMessageReader

java.lang.Object
  extended by koala.dynamicjava.util.LocalizedMessageReader

public class LocalizedMessageReader
extends 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 '%%'.

Version:
1.0 - 1999/08/04
Author:
Stephane Hillion

Constructor Summary
LocalizedMessageReader(String name)
          Creates a new message reader
 
Method Summary
 String getMessage(String key, 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(String name)
Creates a new message reader

Parameters:
name - the name of the resource
Method Detail

getMessage

public String getMessage(String key,
                         String[] strings)
Gets a message

Parameters:
key - the message key
strings - the strings to insert in the message