Package hec.io.dbf

Class DBaseIVMemoUpdate

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

public class DBaseIVMemoUpdate extends AbstractDBaseUpdate
This class updates a DBaseIV file that includes memo fields. This file can be identified by checking the first byte of a xBase class file and seeing if it equals 0x8B. This class will take a like of exiting field descriptors and a list of new field descriptors and add and remove as neccessary and rewrite a new DBaseIV w/ Memo file.
Since:
December 22, 2000
  • Constructor Details

    • DBaseIVMemoUpdate

      public DBaseIVMemoUpdate(File newFile, File oldFile, boolean[] columnsToRemove, boolean[] columnsToAdd, boolean[] columnsToResize, DBFFieldDescriptor[] newFdList)
  • Method Details

    • runUpdate

      public boolean runUpdate()
      Runs the update which copies the files, adding and removing columns as it needs. This closes the files when it is done
      Specified by:
      runUpdate in interface DBaseUpdate
      Overrides:
      runUpdate in class AbstractDBaseUpdate