ru.smartflex.tools.dbf
Class DbfColumn

java.lang.Object
  extended by ru.smartflex.tools.dbf.DbfColumn

public class DbfColumn
extends java.lang.Object

The class DbfColumn is responsible for xBase field definition.

Since:
1.00
Author:
galisha

Constructor Summary
protected DbfColumn(DbfHeader dbfHeader)
           
  DbfColumn(java.lang.String columnName, DbfColumnTypes dbfColumnType, int width, int dec)
          Constructs a newly allocated DbfColumn object that represents xBase field.
 
Method Summary
protected  java.lang.String getColumnName()
           
protected  DbfColumnPosition getDbfColumnPosition()
           
protected  DbfColumnTypes getDbfColumnType()
           
protected  java.lang.String getOriginalType()
           
protected  void parse(byte[] recField)
           
protected  void setColumnName(java.lang.String columnName)
           
protected  void setDbfColumnPosition(DbfColumnPosition dbfColumnPosition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbfColumn

protected DbfColumn(DbfHeader dbfHeader)

DbfColumn

public DbfColumn(java.lang.String columnName,
                 DbfColumnTypes dbfColumnType,
                 int width,
                 int dec)
Constructs a newly allocated DbfColumn object that represents xBase field.

Parameters:
columnName -
dbfColumnType - enumeration for column type
width - column width
dec - column scale ( in other words amount point after comma )
Since:
1.00
Method Detail

getDbfColumnType

protected DbfColumnTypes getDbfColumnType()

parse

protected void parse(byte[] recField)

getColumnName

protected java.lang.String getColumnName()

setColumnName

protected void setColumnName(java.lang.String columnName)

getDbfColumnPosition

protected DbfColumnPosition getDbfColumnPosition()

setDbfColumnPosition

protected void setDbfColumnPosition(DbfColumnPosition dbfColumnPosition)

getOriginalType

protected java.lang.String getOriginalType()