|
|
||
Neto Marin's BlogJune 2008 ArchivesClass Properties for JMEPosted by netomarin on June 12, 2008 at 08:20 AM | Permalink | Comments (1)Hi all!! These days I had to store and travel some settings of mobile applications. So, to get my life easier decided to use the scheme properties. That is, a key = value. And you may think I am getting crazy, right !?!? Because, neither JME has the implementation of the class Properties and there is also the device must implement the JSR 75 in order to save the properties in "format" of file. But using properties I have some advantages:
And besides the benefits, you not just have to save a file. As the implementation of class Properties in JSE, you can get an OutputStream and so, generate a ByteArrayOutputStream getting an array of bytes and save to an RMS! =)You can also receive a file properties sent by a HTTP and using InputStream, load the properties of an automatic and transparent! Who is interested, just click here to download the zip file containing the .java file with my implementation! Feel free to use, modify and do whatever you want!! Cya!! []s | ||
|
|