Skip to content

Conversation

@ilaipi
Copy link

@ilaipi ilaipi commented Apr 13, 2015

halo~
I recently done a job for analysis show2003.dbf & sjshq.dbfuse this library.
In show2003, the first row with time info is marked as deleted, so I can't get the record by nextReord().
Even in the first row, some fields' length isn't the same with the define in the header.

So I need read the time info custom by :

    /**
     * for custom user, only when you understand the file content<br/>
     * call dataInput.skip(int n)
     * @param length
     */
    skipBytes(int length)
    /**
     * for custom user, only when you understand the file content<br/>
     * call dataInput.readFully(byte[] b)
     * @param length
     */
    readBytes(int length)

And then, I also need the other "deleted data" in show2003,
So I also add a method:

    /**
     * Reads and returns the next row in the Dbf stream<br/>
     * a deleted row start with "*" <br/>
     * a normal row start with " " <br/>
     * so we just ignore the first byte
     * @return The next row as an Object array.
     */
    nextRecordIgnoreDelete()

I hope this can help to others!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant