I have to work with properties file and wonder how I can get hashmap of the keys ?
I have properties like : FileTransformer.<fileType>.Name = "descriptive name"; FileTransformer.<fileType>.extension = "*.xxx"; FileTransformer.<fileType>.transformer = "class_name";
here I can get as possibly as many fileTypes as there is different extension types. As the time I read my properties file, I am not certain of all properties there is. Also my properties file will contain many other properties that I am not interested in when I want to read only the FileTransformer part.
Is there a way working with properties file to get a hashmap of FileTransformer only ? where all <fileType> will be key of another hashmap ?
Thanks for your comment, Fred
Joined: Nov 29, 2005
You can at best get all the keys and then have some custom function to select out all the keys that starts with "FileTransformer" and use those keys further. There is nothing built in Properties as such.