package com.vci.client.omd.btm.resource;
|
|
import java.io.IOException;
|
import java.io.InputStream;
|
import java.util.PropertyResourceBundle;
|
|
public class ImageIconConfig {
|
|
private static PropertyResourceBundle resourceBundle = null;
|
|
static{
|
try{
|
if(resourceBundle == null){
|
InputStream ins = ImageIconConfig.class.getResourceAsStream("imageIcon.properties");
|
if(ins != null){
|
resourceBundle = new PropertyResourceBundle(ins);
|
}
|
}
|
}catch(IOException e){
|
e.printStackTrace();
|
}catch(Exception e){
|
e.printStackTrace();
|
}
|
}
|
|
|
public static String getProperty(String strKey){
|
try{
|
return resourceBundle.getString(strKey);
|
}catch(Exception e){
|
return "";
|
}
|
}
|
|
}
|