Package hec.io.dbf
Class DBaseIVMemoUpdate
java.lang.Object
hec.io.dbf.AbstractDBaseUpdate
hec.io.dbf.DBaseIVMemoUpdate
- All Implemented Interfaces:
DBaseUpdate
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
-
Field Summary
Fields inherited from class hec.io.dbf.AbstractDBaseUpdate
_fdList, _header -
Constructor Summary
ConstructorsConstructorDescriptionDBaseIVMemoUpdate(File newFile, File oldFile, boolean[] columnsToRemove, boolean[] columnsToAdd, boolean[] columnsToResize, DBFFieldDescriptor[] newFdList) -
Method Summary
Modifier and TypeMethodDescriptionbooleanRuns the update which copies the files, adding and removing columns as it needs.Methods inherited from class hec.io.dbf.AbstractDBaseUpdate
readHeader
-
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:
runUpdatein interfaceDBaseUpdate- Overrides:
runUpdatein classAbstractDBaseUpdate
-