com.sas.edir.util
Class ResOp

java.lang.Object
  |
  +--com.sas.edir.util.ResOp

public class ResOp
extends java.lang.Object

Supporting methods for resource management.

Version:
1.0
Author:
SAS

Field Summary
protected static java.lang.String CORRUPT_MSG_FILE
           
 
Constructor Summary
ResOp()
           
 
Method Summary
static java.lang.String format(java.util.ResourceBundle rb, java.lang.String key)
          Returns a formatted string from the specified resource bundle.
static java.lang.String format(java.util.ResourceBundle rb, java.lang.String key, java.lang.Object[] args)
          Returns a formatted string from the specified resource bundle.
static java.lang.String getString(java.util.ResourceBundle rb, java.lang.String key)
          Returns a string from the specified resource bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CORRUPT_MSG_FILE

protected static final java.lang.String CORRUPT_MSG_FILE
Constructor Detail

ResOp

public ResOp()
Method Detail

format

public static java.lang.String format(java.util.ResourceBundle rb,
                                      java.lang.String key)
Returns a formatted string from the specified resource bundle.

The string resource is formatted by MessageFormat.format using args as the format arguments.

Parameters:
rb - The resource bundle.
key - A resource key.
Returns:
A string resource obtained from the key, namely getResources().getString(key)

format

public static java.lang.String format(java.util.ResourceBundle rb,
                                      java.lang.String key,
                                      java.lang.Object[] args)
Returns a formatted string from the specified resource bundle.

The string resource is formatted by MessageFormat.format using args as the format arguments.

Parameters:
rb - The resource bundle.
key - A resource key.
args - Arguments used to format the string stored in key.
Returns:
A string resource obtained from the key, namely getResources().getString(key)

getString

public static java.lang.String getString(java.util.ResourceBundle rb,
                                         java.lang.String key)
Returns a string from the specified resource bundle.

Parameters:
rb - The resource bundle.
key - A resource key.
Returns:
A string resource obtained from the key, namely getResources().getString(key)