Đang Thực Hiện

2679 Need small Java class for J2ME

We need small Java class which will be used on J2ME platform MIDP 2.0. So you can only use [url removed, login to view] which is supported under MIDP 2.0 except for File API which you can use from J2SE and which we will replace later by the J2ME File API of our device. This way the class can be also tested under J2SE. Internal class functionality must use eventually: OutputStream or DataOutputStream InputStream or DataInputStream and not depend on File API from J2SE. The class has to work on settings file which is normal text file and looks like this: property1=number property2=string1 property3=string2 property4=string3 When the class is created it needs to check if settings file exists, let's say with name setup.ini. If it does not than the class needs to create this file and populate it with above property1 .. 4. If the file does exists than the class does not do anything. Further we need interfaces like: getProp(String name) setProp(String name, String value) so getProp("property3") will return "string2" and setProp("property2", "new string value") will write "new string value" behind property2 in the file so the file will become: property1=number property2=new string value property3=string2 property4=string3 Every time get and set method supposed to open and in the end close the file so that file is not kept open when those methods are not used and thus consistent if application crashes. If property is overwritten with bigger value the class has to acomodate it so that the other properties are not overwritten.

Kỹ năng: Bất kì công việc gì, Java

Xem thêm: get java, java api, io, anything, need small, api need use, java string, name java small application, j2me number string, small j2me application, java file properties write, java small work, java end, write file java, small text created, replace file java, j2me time, java method, need small java application, ini write, application midp, open text file java, open file java, need open file, small java work

Về Bên Thuê:
( 5 nhận xét ) Rh, Netherlands

Mã Dự Án: #1753548