I'm developing a MIDlet for series 60 phones that needs to parse a quite large (~280k) binary data-file that comes with the .jar-file.
I access the file by creating a DataInputStream reader = new DataInputStream(getClass().getRessourceAsStream(filename)), and doing reader.readByte(), reader.readBoolean() .. to parse the data.
This takes some seconds for the whole file, and works fine. The problem is that the parsing has do be done several times, and when it does for the 5th or 6th time the application terminates with an error message:
Does anyone know a solution for this one ?