Gyro wrote:
> Hi. please suggest method/technique to store strings in a midlet jar
> archive portable.
> I wanna a ui strings to be stored in a file for better/easy
> internationalisation. Is a plain text files with extensions
> corresponding to current phone locale is a good way? What you think?
You can do it that way, using a text file in the JAR and then accessing
it via Class.getResourceAsStream(String). Another way (and one I prefer)
is to create a binary file at build-time using DataOutputStream. Then
you can access the data at runtime using a DataInputStream and save
yourself all of the parsing time needed to read in a straight text file.
--
Darryl L. Pierce <>
Visit my homepage:
http://mcpierce.multiply.com
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard