Revision 10209

View differences:

trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/MemoryExpansionFile.java
55 55
public class MemoryExpansionFile implements ExpansionFile {
56 56
	ArrayList rows = new ArrayList();
57 57
	EditableAdapter edAdapter;
58
	
59
	private class InternalRow 
58

  
59
	private class InternalRow
60 60
	{
61 61
		private IRowEdited row;
62 62
		private int indexInternalFields;
......
72 72
			return row;
73 73
		}
74 74
	}
75
	
75

  
76 76
	public MemoryExpansionFile(EditableAdapter edAdapter)
77 77
	{
78 78
		this.edAdapter = edAdapter;
79 79
	}
80
	
80

  
81 81
	//BitSet invalidRows = new BitSet();
82 82
	/**
83 83
	 * @see com.iver.cit.gvsig.fmap.edition.ExpansionFile#addRow(IRow, int)
......
112 112
//
113 113
//		return rows.size() - 1;
114 114
//	}
115
	
115

  
116 116
	public int modifyRow(int index, IRow row, int indexInternalFields) throws IOException {
117 117
		  /*if (invalidRows.get(index)) {
118 118
		   throw new RuntimeException(
......
139 139
			return null;
140 140
		}
141 141
*/
142
		InternalRow iRow = (InternalRow) rows.get(index); 
142
		InternalRow iRow = (InternalRow) rows.get(index);
143 143
		int indexInternalFields = iRow.getIndexInternalFields();
144 144
		return edAdapter.createExternalRow(iRow.getRow(), indexInternalFields);
145 145
		// return iRow.getRow();
......
200 200

  
201 201
	public void close() throws IOException {
202 202
		rows.clear();
203

  
203
		System.gc();
204 204
	}
205 205

  
206 206
	public int getSize() {

Also available in: Unified diff