Package hec.io.dbf

Class AbstractDBaseUpdate

java.lang.Object
hec.io.dbf.AbstractDBaseUpdate
All Implemented Interfaces:
DBaseUpdate
Direct Known Subclasses:
DBaseIVMemoUpdate

public abstract class AbstractDBaseUpdate extends Object implements DBaseUpdate
This is an abstract class that defines methods and constants that are genderica to all xBase class of database files. This includes (DBase). At the bottom is the layout of the header.
  • Field Details

  • Constructor Details

    • AbstractDBaseUpdate

      public AbstractDBaseUpdate(File newFile, File oldFile, boolean[] columsToRemove, boolean[] columnsToAdd, boolean[] columnsToResize, DBFFieldDescriptor[] fdList)
  • Method Details

    • runUpdate

      public boolean runUpdate()
      Runs the update which copies the files, adding and removing columns as it needs.
      Specified by:
      runUpdate in interface DBaseUpdate
    • readHeader

      protected boolean readHeader()
      This method reads the header of the database file into the internal header object