I have a file that holds values, these values are then read by inputstream to create an object.
I dont want everytime the app run to read the file all the time if it hasnt been changed so what Im trying to do is to get the byte array from the file using an inputstream and compare it to the byte array in the record store.
I check if the bytes array are equals by converting them to string first. now if they're equal that means the file hasnt been changed so I dont need to read it again to make the object but I need a way to take this byte array (the one that is in the record store / the one that we obtained via the input stream, they're the same we just found out) and convert it into the object to make an object out of it instead of reading the file.
how can I do it ? j2me doesnt have any kind of object streams ?