org.h2gis.drivers
Interface FileDriver

All Known Implementing Classes:
DBFDriver, SHPDriver

public interface FileDriver

Implement this interface in order to create a H2Table in your TableEngine implementation. How to use:

Author:
Nicolas Fortin

Method Summary
 void close()
          Close the file, free resources.
 Object[] getRow(long rowId)
           
 long getRowCount()
           
 void insertRow(Object[] values)
          Insert values to the current row
 

Method Detail

getRowCount

long getRowCount()
Returns:
Row count

close

void close()
           throws IOException
Close the file, free resources.

Throws:
IOException

getRow

Object[] getRow(long rowId)
                throws IOException
Parameters:
rowId - Row index [0-getRowCount()[
Returns:
The row content
Throws:
IOException - Read error

insertRow

void insertRow(Object[] values)
               throws IOException
Insert values to the current row

Parameters:
values -
Throws:
IOException


Copyright © 2015 CNRS. All Rights Reserved.