Code Monkey home page Code Monkey logo

dans-dbf-lib's Introduction

dans-dbf-lib

DANS DBF Library - Java classes to read, write and update DBF database files.

DESCRIPTION

DANS DBF is a Java library for reading, writing and updating the contents of old DBF (dBase) databases. It was produced for the MIXED project. It is no longer maintained. You are however free to fork it, if you wish.

DANS DBF requires Java 1.5, or later, and has no dependencies.

The following program demonstrates how the library is used.

import nl.knaw.dans.common.dbflib.*;

import java.io.File;
import java.util.Iterator;
import java.util.List;

public class DansDbfDemo
{
  public static void main(String []args) throws Exception
  {
    File dbfFile = new File("src/test/resources/dbase3plus/cars/cars.dbf");
    Table table = new Table(dbfFile);
    table.open(IfNonExistent.ERROR);
    List<Field> fields = table.getFields();
    Iterator<Record> it = table.recordIterator();
    while (it.hasNext())
    {
      Record record = it.next();
      for (Field field: fields)
      {
        System.out.print(field.getName());
        System.out.print(": ");
        System.out.print(field.getType());
        System.out.print(": ");
        System.out.println(record.getTypedValue(field.getName()));
      }
    }
    table.close();
  }
}

The project does contain configuration for building a Maven site. However, it is currently broken. At sourceforge there may still be a version of this site.

dans-dbf-lib's People

Contributors

janvanmansum avatar simoc avatar hoshantm avatar ekoi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.