| Reply | « Previous Thread | Next Thread » |
|
I try read data from my binary file:
Code:
iFileConnection = (FileConnection) Connector.open(aPath, Connector.READ); iDataInputStream = iFileConnection.openDataInputStream(); .... Code:
iDataInputStream.mark(1); .... // try return to mark position // THIS WORK FINE ON S40 BUT NOT WORK ON S60 (position not change) !!! WHY ??? Code:
iDataInputStream.reset(); Please help me. |
|
InputStream.mark() and InputStream.reset() are optional. Check the return value from markSupported() to see if the InputStream you're using supports marking.
If markSupported() returns false, then, no, this is not a bug. Cheers, Graham. |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
markSupported() return TRUE !!!
|
|
Why "1"? As soon as one byte is read, the marked position may become invalid. Try using a higher value (larger than the number of bytes you want to read past the mark).
Cheers, Graham. |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
THANK YOU VERY MATCH !!!!!
IT'S WORK !!! :) |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| RecordStore bug on Series 60 | ncerezo2 | Mobile Java General | 20 | 2008-11-13 05:31 |
| Serious BUG in Nokia phones!!! | bartekn | Mobile Java Media (Graphics & Sounds) | 10 | 2004-03-28 23:09 |
| A bug: setColor with offscreen graphics - PLEASE, REPLY THIS TIME | palmcrust | Mobile Java General | 11 | 2003-12-04 13:43 |
| Firmware bug or code bug displaying list on 3650 | blackjack75 | Mobile Java General | 2 | 2003-09-24 20:52 |
| ** Important ** Event bug in phone and emulator. | fnagaton | General Symbian C++ | 8 | 2003-07-11 13:56 |