Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide method to operate DataInput instance #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

provide method to operate DataInput instance #10

wants to merge 1 commit into from

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