Changeset 29922 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSLayer.java
- Timestamp:
- 2013-09-10T21:04:07+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSLayer.java
r29828 r29922 15 15 import java.awt.image.ImageObserver; 16 16 import java.io.EOFException; 17 import java.io.File; 17 18 import java.io.IOException; 18 19 import java.io.ObjectInputStream; … … 131 132 public void destroy() { 132 133 // if the layer is currently saving the images in the cache, wait until it's finished 133 grabThread.cancel(); 134 if(grabThread != null) 135 grabThread.cancel(); 134 136 grabThread = null; 135 137 super.destroy(); … … 439 441 * @throws IOException 440 442 */ 441 public void write(ObjectOutputStream oos) throws IOException { 443 public void write(File associatedFile, ObjectOutputStream oos) throws IOException { 442 444 currentFormat = this.serializeFormatVersion; 445 setAssociatedFile(associatedFile); 443 446 oos.writeInt(this.serializeFormatVersion); 444 447 oos.writeObject(this.location); // String … … 467 470 * @throws ClassNotFoundException 468 471 */ 469 public boolean read(ObjectInputStream ois, int currentLambertZone) throws IOException, ClassNotFoundException { 472 public boolean read(File associatedFile, ObjectInputStream ois, int currentLambertZone) throws IOException, ClassNotFoundException { 470 473 currentFormat = ois.readInt();; 471 474 if (currentFormat < 2) { … … 478 481 this.lambertZone = ois.readInt(); 479 482 this.setRaster(ois.readBoolean()); 483 setAssociatedFile(associatedFile); 480 484 if (currentFormat >= 4) 481 485 ois.readBoolean();
Note:
See TracChangeset
for help on using the changeset viewer.
