×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    13

    Question About DoJa ' s Scratchpad

    hi,everybody..(I am developing a program which it's translate the DoJa api to J2ME api)

    Now,I had a question about the "Scratchpad".as well know. to load some resource.It can write by the following code:

    DataInputStream dis = new DataInputStream(Connector.openInputStream(scratchpad:/// + num +

    ";pos=" + offset + "length = "+length));


    I understand the offset and length variable. but I don't know the num variable. I saw it

    generally take the 0 value.but also can take 1 . why. what is the num functions?

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    1

    Smile Re: About DoJa ' s Scratchpad

    Because there's many ScratchPads in an application (16 in max), this number is used to identify which ScratchPad to use.

Similar Threads

  1. DOJA appli -> Create Image from Byte Array
    By teamore in forum Mobile Java General
    Replies: 2
    Last Post: 2004-10-29, 11:14

Posting Permissions

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