This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes The equals character in the value side of Properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "The equals character in the value side of Properties file" Watch "The equals character in the value side of Properties file" New topic
Author

The equals character in the value side of Properties file

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 776

I want to represent in a properties file, a name-value pair that looks like this:

Whereby the key is f and the value on the RHS is com.foo:style=x. Is this doable ? Thanks

Pho
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

I don't know but if you're having problems...

I read somewhere that objects of the class Preferences work better than objects of type Properties.

I did try out the ProperyResourceBundle and I believe that the ListResourceBundle has fewer problems because it gives you greater control (but of course it takes more coding).

Kaydell
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: The equals character in the value side of Properties file
 
It's not a secret anymore!