1

I need to take in an input file in DBF format (I believe it is made via Foxpro) and read the records sequentially for processing.

Is there any way to do this in Java without use of external libraries?

Thanks.

(I'm just avoiding use of external libraries as much as possible because I will still need to obtain approval for it)

3
  • By external libraries do you mean "native code libraries"? Reading Foxpro in pure Java is probably hard already, but if you mean "only JDK, no JAR file" then: no. Commented Jul 18, 2013 at 9:39
  • Yeah that's what I mean... ...well then if that is an unrefutable, irrevocable NO... What could you suggest to use (external JAR/library) for processing a DBF file in Java? Commented Jul 18, 2013 at 9:45
  • I don't know if this is the same DBF, but: stackoverflow.com/questions/2277523/… Commented Jul 18, 2013 at 9:47

2 Answers 2

5

Try JDBF: https://github.com/iryndin/jdbf

I am the project owner of JDBF.

If you find any bugs don't hesitate to send me bug reports, will fix it.

Sign up to request clarification or add additional context in comments.

Comments

3

The original DBF format is pretty simple. So if you only have to read .dbf files, it's not that hard, see Wikipedia. If you have read the header, you should be able to "jump" directly to the records.

There are plenty of resources on the web; for example on SO:

  • As for the header, have a look at this
  • As for reading the records, look here

So I would just give it a try to read it using java.io.RandomAccessFile

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.