Revision 10627 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/RasterFileAdapter.java
RasterFileAdapter.java | ||
---|---|---|
47 | 47 |
import java.io.File; |
48 | 48 |
import java.io.IOException; |
49 | 49 |
|
50 |
import com.iver.cit.gvsig.fmap.ViewPort;
|
|
50 |
import com.iver.cit.gvsig.exceptions.layers.LoadLayerException;
|
|
51 | 51 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
52 | 52 |
import com.iver.cit.gvsig.fmap.drivers.RasterDriver; |
53 | 53 |
|
... | ... | |
85 | 85 |
* incrementa el contador de las veces que se ha abierto el fichero. |
86 | 86 |
* Solamente cuando el contador est? a cero pide al driver que abra el |
87 | 87 |
* fichero |
88 |
* |
|
89 |
* @throws DriverIOException |
|
88 |
* @throws LoadLayerException TODO |
|
90 | 89 |
*/ |
91 |
public void start() throws DriverIOException {
|
|
90 |
public void start() throws LoadLayerException {
|
|
92 | 91 |
try { |
93 | 92 |
getFileDriver().open(file); |
94 | 93 |
|
... | ... | |
97 | 96 |
driverInitialized = true; |
98 | 97 |
} |
99 | 98 |
} catch (IOException e) { |
100 |
throw new DriverIOException(e);
|
|
99 |
throw new LoadLayerException(file.getName(),e);
|
|
101 | 100 |
} |
102 | 101 |
} |
103 | 102 |
|
... | ... | |
219 | 218 |
public File getFile() { |
220 | 219 |
return file; |
221 | 220 |
} |
222 |
|
|
221 |
|
|
223 | 222 |
} |
Also available in: Unified diff