public class DBFEngine extends FileEngine<DBFDriver>
| Constructor and Description |
|---|
DBFEngine() |
| Modifier and Type | Method and Description |
|---|---|
protected DBFDriver |
createDriver(File filePath,
List<String> args)
Create the driver instance using the file name and additional arguments provided in SQL create table request.
|
protected void |
feedCreateTableData(DBFDriver driver,
org.h2.command.ddl.CreateTableData data)
Add columns definition of the file into the CreateTableData instance.
|
static void |
feedTableDataFromHeader(DbaseFileHeader header,
org.h2.command.ddl.CreateTableData data)
Parse the DBF file then init the provided data structure
|
createTable, getUniqueColumnNameprotected DBFDriver createDriver(File filePath, List<String> args) throws IOException
FileEnginecreateDriver in class FileEngine<DBFDriver>filePath - First argument, file nameargs - Additional argument, contains the file name as first argumentIOExceptionprotected void feedCreateTableData(DBFDriver driver, org.h2.command.ddl.CreateTableData data) throws IOException
FileEnginefeedCreateTableData in class FileEngine<DBFDriver>driver - driver objectdata - Data to initialiseIOExceptionpublic static void feedTableDataFromHeader(DbaseFileHeader header, org.h2.command.ddl.CreateTableData data) throws IOException
header - dbf headerdata - Data to initialiseIOExceptionCopyright © 2019 CNRS. All rights reserved.