Results 1 to 3 of 3
  1. #1
    shai is offline Member
    Join Date
    Jul 2010
    Posts
    10
    Rep Power
    0

    Default Question about the write method in DataOutput

    The description of the method states:
    "Writes to the output stream the eight low-order bits of the argument b. The 24 high-order bits of b are ignored."

    I don't understand what is the meaning of ignoring the 24 high-order bits, does that mean that you write a different value than the original int argument to the output stream?

    I have a similar problem with many of the other methods in that interface since the same description repeats.

    Can anyone clarify this for me?

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Seems you've solve the problem yourself. So if you can, it's better to post here how you solve it. Your comment may be useful for other members in some cases. In most of the cases people look into solved threads.

  3. #3
    shai is offline Member
    Join Date
    Jul 2010
    Posts
    10
    Rep Power
    0

Similar Threads

  1. how to write method syntax ?
    By Bader in forum New To Java
    Replies: 2
    Last Post: 03-14-2010, 05:58 PM
  2. socket DataOutput problems
    By gisler in forum Networking
    Replies: 1
    Last Post: 12-17-2009, 09:04 PM
  3. method question
    By xplayerr in forum New To Java
    Replies: 7
    Last Post: 11-11-2009, 04:13 PM
  4. Trying to write toString method
    By curious in forum New To Java
    Replies: 3
    Last Post: 10-28-2009, 02:43 AM
  5. Replies: 4
    Last Post: 03-25-2008, 12:16 PM

Posting Permissions

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