Best way to find data in a variable length ASCII text area where the property data (key/values pairs) may be always different
Posted on 2006-04-25
What would the best way to find items in a variable length ASCII text area where the data (is set up like a property file with key/values pairs but may be always different). I will know the different types of key/value pairs but they might change (new ones added or old ones removed)
say text area could have
Next text area I am sent could have
Street Name=100 Main Street
City Name=New York
Next one could have
I know I probably should treat it as a property file.. using Properties class and use the get method, but where would be the best way/place to put the items you are looking for in an Araylist?
Or would you just move the text area over to a hashmap and try to get the key/value pairs from there?
The message area will only have one of the 3 at a time though, so don't know the best way without searching the text area with all of them...