Revision 10627 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/ExpansionFile.java
ExpansionFile.java | ||
---|---|---|
1 | 1 |
package com.iver.cit.gvsig.fmap.edition; |
2 | 2 |
|
3 |
import com.iver.cit.gvsig.fmap.core.IRow; |
|
4 |
|
|
5 |
import java.io.IOException; |
|
6 |
|
|
7 |
import java.util.BitSet; |
|
8 | 3 |
import java.util.HashMap; |
9 | 4 |
|
5 |
import com.iver.cit.gvsig.exceptions.expansionfile.CloseExpansionFileException; |
|
6 |
import com.iver.cit.gvsig.exceptions.expansionfile.ExpansionFileReadException; |
|
7 |
import com.iver.cit.gvsig.exceptions.expansionfile.ExpansionFileWriteException; |
|
8 |
import com.iver.cit.gvsig.exceptions.expansionfile.OpenExpansionFileException; |
|
9 |
import com.iver.cit.gvsig.fmap.core.IRow; |
|
10 | 10 |
|
11 |
|
|
11 | 12 |
/** |
12 | 13 |
* Maneja el fichero de extensi?n en el que se almacenan las modificacionesy adici?nes |
13 | 14 |
* durante la edici?n. Los ?ndices que devuelve esta clase en sus m?todos |
... | ... | |
29 | 30 |
* @param indexInternalFields fields that where valid when this row was added. |
30 | 31 |
* |
31 | 32 |
* @return calculated index of the new row. |
32 |
* |
|
33 |
* @throws IOException |
|
33 |
* @throws ExpansionFileWriteException TODO |
|
34 | 34 |
*/ |
35 |
int addRow(IRow row, int status, int indexInternalFields) throws IOException;
|
|
35 |
int addRow(IRow row, int status, int indexInternalFields) throws ExpansionFileWriteException;
|
|
36 | 36 |
|
37 | 37 |
/** |
38 | 38 |
* Modifica la index-?sima geometr?a del fichero devolviendo la posici?n en |
... | ... | |
42 | 42 |
* @param row newRow that replaces the old row. |
43 | 43 |
* |
44 | 44 |
* @return new calculated index of the modified row. |
45 |
* |
|
46 |
* @throws IOException |
|
45 |
* @throws ExpansionFileWriteException TODO |
|
47 | 46 |
*/ |
48 |
int modifyRow(int index, IRow row, int indexInternalFields) throws IOException;
|
|
47 |
int modifyRow(int index, IRow row, int indexInternalFields) throws ExpansionFileWriteException;
|
|
49 | 48 |
|
50 | 49 |
/** |
51 | 50 |
* Obtiene la geometria que hay en el ?ndice 'index' o null si la geometr?a |
... | ... | |
53 | 52 |
* |
54 | 53 |
* @param index caculatedIndex of the row to be read. |
55 | 54 |
* @return |
56 |
* @throws IOException
|
|
55 |
* @throws ExpansionFileReadException TODO
|
|
57 | 56 |
*/ |
58 |
IRowEdited getRow(int index) throws IOException;
|
|
57 |
IRowEdited getRow(int index) throws ExpansionFileReadException;
|
|
59 | 58 |
|
60 | 59 |
/** |
61 | 60 |
* Invalida una geometr?a, de cara a una futura compactaci?n del fichero |
... | ... | |
86 | 85 |
|
87 | 86 |
/** |
88 | 87 |
* Abre el fichero de expansi?n para comenzar la edici?n |
89 |
* |
|
90 |
* @throws IOException Si se produce alg?n error al abrir |
|
88 |
* @throws OpenExpansionFileException TODO |
|
91 | 89 |
*/ |
92 |
void open() throws IOException;
|
|
90 |
void open() throws OpenExpansionFileException;
|
|
93 | 91 |
|
94 | 92 |
/** |
95 | 93 |
* Cierra el fichero de expansi?n al terminar la edici?n |
96 |
* |
|
97 |
* @throws IOException Si se produce alg?n error |
|
94 |
* @throws CloseExpansionFileException TODO |
|
98 | 95 |
*/ |
99 |
void close() throws IOException;
|
|
96 |
void close() throws CloseExpansionFileException;
|
|
100 | 97 |
|
101 | 98 |
/** |
102 | 99 |
* @param previousExpansionFileIndex |
103 | 100 |
*/ |
104 | 101 |
//void validateRow(int previousExpansionFileIndex); |
105 | 102 |
//BitSet getInvalidRows(); |
106 |
|
|
103 |
|
|
107 | 104 |
int getSize(); |
108 | 105 |
} |
Also available in: Unified diff