×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    8

    InputStream & S40, S60 platform

    Quick question to experts:
    I see that InputStream reading is done using read(), i.e. one byte at a time in the Emulators (S40/S60).
    Is there a reason the more efficient reads are not used?

    thx
    bsr

  2. #2
    Regular Contributor
    Join Date
    Aug 2006
    Location
    Rawalpindi, Pakistan
    Posts
    486

    Re: InputStream & S40, S60 platform

    You can use inputstream read(byte[] data) fuction to read all the data as well in byte array. if u have data in byte array u can use
    DataInputStream dis = new DataInputStream(new ByteArrayInputStream(data));

    this will allow u a little more flexibility and methods for reading bytes.
    so i dont there is an issue of efficency here.
    Regards
    Nouman

  3. #3
    Registered User
    Join Date
    May 2007
    Posts
    8

    Re: InputStream & S40, S60 platform

    It is not my code, I am talking about. It is the implementation of SVGImage.createImage() that reads a byte at a time...
    I cannot force it to to do bigger reads.

  4. #4
    Regular Contributor
    Join Date
    Aug 2006
    Location
    Rawalpindi, Pakistan
    Posts
    486

    Re: InputStream & S40, S60 platform

    oh ok SVG information was not there on ur post i thought we were talking generally.

    i dont really think it would be a problem. u can use readbyte in a loop. i dont think efficency will be a real issue.
    Regards
    Nouman

Similar Threads

  1. S60 3rd Ed Platform Requirement Submissions
    By Nokia Ron in forum Tools and SDK Feedback (Closed)
    Replies: 0
    Last Post: 2007-02-15, 17:28
  2. Device font in S60 Platform SDK 3rd ED
    By jiipee63 in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2006-10-02, 10:09
  3. Sharp Platform to Nokia S60
    By aRcTiC_sTaR in forum Mobile Java Games
    Replies: 0
    Last Post: 2006-06-21, 04:43
  4. Connection problem between s40 and s60
    By skevelim in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2005-07-04, 10:57
  5. Replies: 1
    Last Post: 2005-06-30, 14:50

Posting Permissions

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