Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Feb 2007

    What is happening in InputStream.Skip method?


    I need to read inputstream on Nokia 9500 under special circumstances, but the read method crashes because of a nokia implementation bug*. Interrestingly the skip method works correctly. According to MIDP2 API:

    The skip method of InputStream creates a byte array and then repeatedly reads into it until n bytes have been read or the end of the stream has been reached. Subclasses are encouraged to provide a more efficient implementation of this method.

    If this is true the skip method manages to read the stream that I don't manage to. My question is: is it possible to check somehow what is happening exactly when the skip method is called? Is it a usual java code? Is it public?
    If yes I could copy the code from the skip method and avoid the error above.

    I would greatly appreciate any pointers in this!

    *For details please see:
    Last edited by orsteglasy; 2007-03-20 at 13:23.

Similar Threads

  1. Is switching to another Canvas inside a paint() method OK?
    By falconpl in forum Mobile Java General
    Replies: 2
    Last Post: 2006-05-06, 00:15
  2. Method pointers?
    By profoundwhispers in forum Symbian
    Replies: 0
    Last Post: 2004-08-03, 09:27
  3. Replies: 0
    Last Post: 2004-03-03, 10:34
  4. Methods, that take lots of space
    By doctordwarf in forum Mobile Java General
    Replies: 4
    Last Post: 2003-07-30, 11:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts