svn-gvsig-desktop / trunk / libraries / libGDBMS / src / com / hardcode / gdbms / engine / data / FileDriver.java @ 466
History | View | Annotate | Download (1008 Bytes)
1 |
package com.hardcode.gdbms.engine.data; |
---|---|
2 |
|
3 |
import java.io.File; |
4 |
import java.io.IOException; |
5 |
|
6 |
|
7 |
/* Generated by Together */
|
8 |
|
9 |
/**
|
10 |
* Interfaz para los datos aleatorios
|
11 |
*/
|
12 |
public interface FileDriver extends ReadDriver { |
13 |
/**
|
14 |
* M?todo invocado al comienzo para abrir el fichero. A partir de la
|
15 |
* invocaci?n de este m?todo todos las operaciones se har?n sobre el File
|
16 |
* que se pasa como par?metro
|
17 |
*
|
18 |
* @param file Fichero que se debe de abrir
|
19 |
*
|
20 |
* @throws IOException Si se produce algun error
|
21 |
*/
|
22 |
void open(File file) throws IOException; |
23 |
|
24 |
/**
|
25 |
* Cierra el Fichero sobre el que se estaba accediendo
|
26 |
*
|
27 |
* @throws IOException Si se produce alg?n error
|
28 |
*/
|
29 |
void close() throws IOException; |
30 |
|
31 |
/**
|
32 |
* devuelve true si el driver puede leer el fichero que
|
33 |
* se pasa como par?metro, false en caso contrario
|
34 |
*
|
35 |
* @param f Fichero que se quiere comprobar
|
36 |
*
|
37 |
* @return DOCUMENT ME!
|
38 |
*/
|
39 |
boolean fileAccepted(File f); |
40 |
} |