To read 2 byte flag from DB file.

Discussion in 'Java' started by rakhi, Mar 19, 2007.

  1. rakhi

    rakhi

    Joined:
    Mar 19, 2007
    Messages:
    2
    What is the most effective way to read 2 byte flag from database file ?
    can i use readShort() method of DataInputStream ? (It doesnt give expected ans to me.)

    A database file has few Records with 2 byte flag which 00 implies valid record, 0x8000 implies deleted record " .
    what does 0x8000 means ? How could i read this from file?
    Please help to solve this .
    rakhi, Mar 19, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. crash.test.dummy
    Replies:
    1
    Views:
    910
    Knute Johnson
    Feb 17, 2006
  2. Deep
    Replies:
    6
    Views:
    471
    Nick Keighley
    Feb 28, 2007
  3. rakhi
    Replies:
    0
    Views:
    330
    rakhi
    Mar 19, 2007
  4. EuGeNe Van den Bulke

    poplib.retr doens't flag message as read

    EuGeNe Van den Bulke, Jun 19, 2007, in forum: Python
    Replies:
    3
    Views:
    303
    Gabriel Genellina
    Jun 20, 2007
  5. daved170

    read text file byte by byte

    daved170, Dec 12, 2009, in forum: Python
    Replies:
    30
    Views:
    1,825
    Nobody
    Dec 16, 2009
Loading...

Share This Page