Apache JMeter

org.apache.jmeter.display.utils
Class ResourceUtil

java.lang.Object
  extended by org.apache.jmeter.display.utils.ResourceUtil

public class ResourceUtil
extends Object


Field Summary
static String RES_KEY_PFX
           
 
Constructor Summary
ResourceUtil(String resourceFile)
           
 
Method Summary
 String getResString(String key)
          Gets the resource string for this key.
 void init(String resourceFile)
           
 void setResources(ResourceBundle resources)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RES_KEY_PFX

public static final String RES_KEY_PFX
See Also:
Constant Field Values
Constructor Detail

ResourceUtil

public ResourceUtil(String resourceFile)
Method Detail

init

public void init(String resourceFile)

getResString

public String getResString(String key)
Gets the resource string for this key. If the resource is not found, a warning is logged

Parameters:
key - the key in the resource file
Returns:
the resource string if the key is found; otherwise, return "[res_key="+key+"]"

setResources

public void setResources(ResourceBundle resources)
Parameters:
resources - the resources to set

Apache JMeter

Copyright © 1998-2009 Apache Software Foundation. All Rights Reserved.