|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.h2gis.drivers.dbf.internal.DBFDriver
public class DBFDriver
Manage DBFReader and DBFWriter
| Constructor Summary | |
|---|---|
DBFDriver()
|
|
| Method Summary | |
|---|---|
void |
close()
Close the file, free resources. |
DbaseFileHeader |
getDbaseFileHeader()
|
File |
getDbfFile()
|
int |
getFieldCount()
|
Object[] |
getRow(long rowId)
|
long |
getRowCount()
|
void |
initDriver(File dbfFile,
DbaseFileHeader dbaseHeader)
|
void |
initDriverFromFile(File dbfFile)
Init file header for DBF File |
void |
initDriverFromFile(File dbfFile,
String forceEncoding)
Init file header for DBF File |
void |
insertRow(Object[] values)
Write a row |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DBFDriver()
| Method Detail |
|---|
public void initDriverFromFile(File dbfFile)
throws IOException
dbfFile - DBF File path
IOException
public void initDriverFromFile(File dbfFile,
String forceEncoding)
throws IOException
dbfFile - DBF File pathforceEncoding - File encoding to use, null will use the file encoding provided in the file header
IOException
public void initDriver(File dbfFile,
DbaseFileHeader dbaseHeader)
throws IOException
IOException
public void insertRow(Object[] values)
throws IOException
values - Content, must be of the same type as declared in the header
IOExceptionpublic File getDbfFile()
public DbaseFileHeader getDbaseFileHeader()
public void close()
throws IOException
FileDriver
close in interface FileDriverIOExceptionpublic long getRowCount()
getRowCount in interface FileDriverpublic int getFieldCount()
public Object[] getRow(long rowId)
throws IOException
getRow in interface FileDriverrowId - Row index [0-getRowCount()[
IOException - Read error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||