Package hec.io.dbf

Class DBFFieldDescriptor

java.lang.Object
hec.io.dbf.DBFFieldDescriptor
All Implemented Interfaces:
Serializable

public class DBFFieldDescriptor extends Object implements Serializable
An object that publically describes a DBF field.
See Also:
  • Field Details

    • fieldName

      public String fieldName
    • fieldDescription

      public String fieldDescription
    • fieldType

      public char fieldType
    • fieldDataAddress

      public int fieldDataAddress
    • fieldSize

      public int fieldSize
    • numDecimal

      public int numDecimal
    • multiUserRes

      public short multiUserRes
    • workID

      public byte workID
    • multiUserRes2

      public short multiUserRes2
    • setFieldsFlag

      public byte setFieldsFlag
    • reserved

      public byte[] reserved
    • indexFld

      public byte indexFld
  • Constructor Details

    • DBFFieldDescriptor

      public DBFFieldDescriptor()
    • DBFFieldDescriptor

      public DBFFieldDescriptor(String fName, char fType, int fSize, int nDecimal)
      Creates a new field descriptor object to represent a 1 DBase Field.

      Parameters:
      fName - The name to use for the field. Must be 10 characters or less. If greater than 10, it will be truncated
      fType - The type of field this will be, ie MEMO, Locigal, etc
      fSize - The size of the field. Must be > 0. If field type is MEMO, this argument is ignored and the value of 10 is used
      nDecimal - The size of the field. Must be >= 0. If field type is MEMO, this argument is ignored

      See Also:
      • for more information about field types.
    • DBFFieldDescriptor

      public DBFFieldDescriptor(String fName, String fDesc, char fType, int fSize, int nDecimal)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(DBFFieldDescriptor fd)
    • getFieldName

      public String getFieldName()
    • getFieldDescription

      public String getFieldDescription()
    • getFieldType

      public char getFieldType()
    • getFieldSize

      public int getFieldSize()
    • getNumDecimal

      public int getNumDecimal()
    • setFieldName

      public void setFieldName(String name)
    • setRecordOffset

      public void setRecordOffset(int recordOffset)
    • getRecordOffset

      public int getRecordOffset()