Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / November 2005

Tip: Looking for answers? Try searching our database.

dbf file parsing

Thread view: 
MileHighCelt - 04 Nov 2005 14:26 GMT
I have a standalone dbf file that I need to process after it is sent to
me.  Since I am running Linux, I can't run dBase to extract the data
out.  Is there anyway to parse that file in Java like I would with a
CSV or something?  I Googled and didn't see any tools out there that
would work for my OS and lack of database engine running.

thank you,
N. Shamsundar - 04 Nov 2005 15:26 GMT
> I have a standalone dbf file that I need to process after it is sent to
> me.  Since I am running Linux, I can't run dBase to extract the data
[quoted text clipped - 3 lines]
>
> thank you,

DBF files are a bit more complex in format than CSV files. The file has
a fairly long header, followed by the data. However, the formats
(slightly different versions, for dBase-3, dBase-4) are documented at,
for example, www.wotsit.org .

Alternative methods :

    (i) Open the file in, e.g., OpenOffice and export as .CSV

       (ii) Use ODBC.

N. Shamsundar
University of Houston
MileHighCelt - 04 Nov 2005 17:13 GMT
Thank you for the ideas, but I don't know that those will work because
I won't be able to use ODBC on Linux right?  Perhaps the best bet is to
have the customer save it off as a CSV.  I think dBase does that for
you - assuming they can get to it.

I was hoping I could just read it row by row like other file types and
make each row a DAO.  But if I have to react according to dBase type
then that introduces a whole level of issues that could go wrong.
zhaoyh.hxtt@gmail.com - 05 Nov 2005 04:33 GMT
For Linux,
1. HXTT DBF at http://www.hxtt.net/dbf.html
2. Codebase JDBC at http://www.codebase.com/products/JDBC
3. xBaseJ at http://www.americancoders.com/xBaseJ/

Yonghong Zhao
System Analyst
www.hxtt.net


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.