Creation of ResourceBundle Object of propetirs file using only substring of file name
I have a folder in which only one propeties is available. Say., I have a com.main.test package in which there can be a base_e1.properties file may be present or can be base_e2.properties or base_e3.properties file maybe present. but only one file is present.So how to create a ResourceBundle Object for any of these properties. I want to read in such manner:
ResourceBundle rb = ResourceBundle.getBundle("com.main.test.base_*")
Can we use REGEX?
Plz reply. I will be thankful to u. i m stuck for past 2 days...
Thanks & Regards,