11-24-2010 06:07 PM
There seem to be a few classes for file i/o, and I'm not sure which I should be using. I need to:
Both of these files are binary, and the data will be read and written with byte arrays. I saw that the answer to a similar question was http://www.blackberry.com/developers/docs/5.0.0api
11-26-2010 10:41 AM
I'm not quite sure about #2 but #1 is possible on OS 5.0 and higher.
There was a discussion about it here: http://supportforums.blackberry.com/t5/Java-Develo
It has a example I wrote up. Seekables seem only like you can use it with FileConnection but never tried anything else out myself.
11-27-2010 01:21 PM
Well, right now it's looking like it won't be possible. I don't know what's going on, I tried opening a file using the prescribed method (Connector.open(sPath)) but (fcon instanceof Seekable) comes back false. That's pretty strange, since the file I'm opening is using the BlackBerry backbone file system. I guess I'm just going to have to design my whole app to just be sequential. Fail
11-27-2010 05:03 PM
After Connector.open(sPath) call some function like openOutputStream and than try (ostm instanceof Seekable).