com.iver.cit.gvsig.fmap.drivers.shp
Class DbaseFileNIO

java.lang.Object
  extended bycom.iver.cit.gvsig.fmap.drivers.shp.DbaseFileNIO

public class DbaseFileNIO
extends java.lang.Object

Class to read and write data to a dbase III format file. Creation date: (5/15/2001 5:15:13 PM)


Constructor Summary
DbaseFileNIO()
           
 
Method Summary
 void close()
          Removes all data from the dataset
 boolean getBooleanFieldValue(int rowIndex, int fieldId)
          Devuelve el valor de un boolean a partir de su número de fila y de field.
 int getFieldCount()
          Devuelve el número de fields.
 int getFieldDecimalLength(int inIndex)
          Retrieve the location of the decimal point.
 int getFieldLength(int inIndex)
          Retrieve the length of the given column.
 java.lang.String getFieldName(int inIndex)
          Retrieve the name of the given column.
 char getFieldType(int inIndex)
          Retrieve the type of the given column.
 java.lang.Number getNumberFieldValue(int rowIndex, int fieldId)
          Devuelve el Number a partir de una fila y columna.
 int getRecordCount()
          Retrieve number of records in the DbaseFile
 java.lang.String getStringFieldValue(int rowIndex, int fieldId)
          Devuelve el String a partir del número de fila y columna.
 void open(java.io.File file)
          read the DBF file into memory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbaseFileNIO

public DbaseFileNIO()
Method Detail

getRecordCount

public int getRecordCount()
Retrieve number of records in the DbaseFile

Returns:
Número de registros.

getFieldCount

public int getFieldCount()
Devuelve el número de fields.

Returns:
Número de fields.

getBooleanFieldValue

public boolean getBooleanFieldValue(int rowIndex,
                                    int fieldId)
Devuelve el valor de un boolean a partir de su número de fila y de field.

Parameters:
rowIndex - Número de fila.
fieldId - Número columna.
Returns:
boolean.

getStringFieldValue

public java.lang.String getStringFieldValue(int rowIndex,
                                            int fieldId)
Devuelve el String a partir del número de fila y columna.

Parameters:
rowIndex - Número de fila.
fieldId - Número de columna.
Returns:
String.

getNumberFieldValue

public java.lang.Number getNumberFieldValue(int rowIndex,
                                            int fieldId)
Devuelve el Number a partir de una fila y columna.

Parameters:
rowIndex - Número fila.
fieldId - Número columna.
Returns:
Number.

getFieldName

public java.lang.String getFieldName(int inIndex)
Retrieve the name of the given column.

Parameters:
inIndex - índice.
Returns:
nombre del campo.

getFieldType

public char getFieldType(int inIndex)
Retrieve the type of the given column.

Parameters:
inIndex - índice.
Returns:
tipo de campo.

getFieldLength

public int getFieldLength(int inIndex)
Retrieve the length of the given column.

Parameters:
inIndex - indice.
Returns:
longitud del field.

getFieldDecimalLength

public int getFieldDecimalLength(int inIndex)
Retrieve the location of the decimal point.

Parameters:
inIndex - índice.
Returns:
localización.

open

public void open(java.io.File file)
          throws java.io.IOException
read the DBF file into memory.

Parameters:
file - Fichero.
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Removes all data from the dataset

Throws:
java.io.IOException - .