deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.io.dbaseapi
Class DBFDataSection

java.lang.Object
  extended by org.deegree.io.dbaseapi.DBFDataSection

public class DBFDataSection
extends Object

Class representing a record of the data section of a dBase III/IV file
at the moment only the daata types character ("C") and numeric ("N") are supported

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $

Constructor Summary
DBFDataSection(FieldDescriptor[] fieldDesc)
          constructor
 
Method Summary
 byte[] getDataSection()
          method: public byte[] getDataSection() returns the data section as a byte array.
 int getNoOfRecords()
          method: public int getNoOfRecords() returns the number of records within the container
 void setRecord(ArrayList recData)
          method: public setRecord(ArrayList recData) writes a data record to byte array representing the data section of the dBase file.
 void setRecord(int index, ArrayList recData)
          method: public setRecord(int index, ArrayList recData) writes a data record to byte array representing the data section of the dBase file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBFDataSection

public DBFDataSection(FieldDescriptor[] fieldDesc)
constructor

Method Detail

setRecord

public void setRecord(ArrayList recData)
               throws DBaseException
method: public setRecord(ArrayList recData) writes a data record to byte array representing the data section of the dBase file. The method gets the data type of each field in recData from fieldDesc wich has been set at the constructor.

Throws:
DBaseException

setRecord

public void setRecord(int index,
                      ArrayList recData)
               throws DBaseException
method: public setRecord(int index, ArrayList recData) writes a data record to byte array representing the data section of the dBase file. The method gets the data type of each field in recData from fieldDesc wich has been set at the constructor. index specifies the location of the retrieved record in the datasection. if an invalid index is used an exception will be thrown

Throws:
DBaseException

getDataSection

public byte[] getDataSection()
method: public byte[] getDataSection() returns the data section as a byte array.


getNoOfRecords

public int getNoOfRecords()
method: public int getNoOfRecords() returns the number of records within the container


deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org