Revision 10627 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/MemoryExpansionFile.java

View differences:

MemoryExpansionFile.java
40 40
 */
41 41
package com.iver.cit.gvsig.fmap.edition;
42 42

  
43
import java.io.IOException;
44 43
import java.util.ArrayList;
45 44
import java.util.HashMap;
46 45

  
46
import com.iver.cit.gvsig.exceptions.expansionfile.CloseExpansionFileException;
47
import com.iver.cit.gvsig.exceptions.expansionfile.ExpansionFileReadException;
48
import com.iver.cit.gvsig.exceptions.expansionfile.ExpansionFileWriteException;
49
import com.iver.cit.gvsig.exceptions.expansionfile.OpenExpansionFileException;
47 50
import com.iver.cit.gvsig.fmap.core.IRow;
48 51

  
49 52

  
......
82 85
	/**
83 86
	 * @see com.iver.cit.gvsig.fmap.edition.ExpansionFile#addRow(IRow, int)
84 87
	 */
85
	public int addRow(IRow row, int status, int indexInternalFields) throws IOException {
88
	public int addRow(IRow row, int status, int indexInternalFields) throws ExpansionFileWriteException {
86 89
		int newIndex = rows.size();
87 90
		IRowEdited edRow = new DefaultRowEdited(row,
88 91
				status, newIndex);
......
113 116
//		return rows.size() - 1;
114 117
//	}
115 118

  
116
	public int modifyRow(int index, IRow row, int indexInternalFields) throws IOException {
119
	public int modifyRow(int index, IRow row, int indexInternalFields) throws ExpansionFileWriteException {
117 120
		  /*if (invalidRows.get(index)) {
118 121
		   throw new RuntimeException(
119 122
		    "Se ha intentado modificar una geometr?a que ha sido borrada anteriormente");
......
134 137
	/**
135 138
	 * @see com.iver.cit.gvsig.fmap.edition.ExpansionFile#getRow(int)
136 139
	 */
137
	public IRowEdited getRow(int index) throws IOException {
140
	public IRowEdited getRow(int index) throws ExpansionFileReadException {
138 141
		/*if (invalidRows.get(index)) {
139 142
			return null;
140 143
		}
......
193 196

  
194 197
	}
195 198

  
196
	public void open() throws IOException {
199
	public void open() throws OpenExpansionFileException {
197 200
		// TODO Auto-generated method stub
198 201

  
199 202
	}
200 203

  
201
	public void close() throws IOException {
204
	public void close() throws CloseExpansionFileException {
202 205
		rows.clear();
203 206
		System.gc();
204 207
	}

Also available in: Unified diff