Package hec.io.dbf
Class AbstractDBaseUpdate
java.lang.Object
hec.io.dbf.AbstractDBaseUpdate
- All Implemented Interfaces:
DBaseUpdate
- Direct Known Subclasses:
DBaseIVMemoUpdate
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDBaseUpdate
(File newFile, File oldFile, boolean[] columsToRemove, boolean[] columnsToAdd, boolean[] columnsToResize, DBFFieldDescriptor[] fdList) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
This method reads the header of the database file into the internal header objectboolean
Runs the update which copies the files, adding and removing columns as it needs.
-
Field Details
-
_fdList
-
_header
-
-
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 interfaceDBaseUpdate
-
readHeader
protected boolean readHeader()This method reads the header of the database file into the internal header object
-