Revision 20744 trunk/libraries/libFMap_dataFile/src/org/gvsig/data/datastores/vectorial/file/shp/ShpFeaturesWriter.java

View differences:

ShpFeaturesWriter.java
9 9
import org.gvsig.data.datastores.vectorial.file.dbf.utils.DbaseFileHeader;
10 10
import org.gvsig.data.datastores.vectorial.file.shp.utils.SHP;
11 11
import org.gvsig.data.datastores.vectorial.file.shp.utils.SHPFileWrite;
12
import org.gvsig.data.exception.DataException;
12 13
import org.gvsig.data.exception.InitializeWriterException;
13 14
import org.gvsig.data.exception.OpenException;
14 15
import org.gvsig.data.exception.ReadException;
......
168 169
			throw new InitializeWriterException("SHP Feature Writer",e);
169 170
		}
170 171
	}
172

  
173
	/* (non-Javadoc)
174
	 * @see org.gvsig.data.datastores.vectorial.file.dbf.DBFFeaturesWriter#dispose()
175
	 */
176
	public void dispose() throws DataException {
177
		super.dispose();
178
		if (this.shpWrite != null){
179
			this.shpWrite.close();
180
			this.shpWrite = null;
181
		}
182
		this.fullExtent = null;
183

  
184
	}
171 185
}

Also available in: Unified diff