Changeset 30990 in osm for applications/editors/josm
- Timestamp:
- 2015-02-15T19:32:00+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/src/reverter/OsmServerMultiObjectReader.java
r30436 r30990 10 10 import org.openstreetmap.josm.data.osm.PrimitiveId; 11 11 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 12 import org.openstreetmap.josm.io.IllegalDataException; 12 13 import org.openstreetmap.josm.io.OsmServerReader; 13 14 import org.openstreetmap.josm.io.OsmTransferException; … … 16 17 public class OsmServerMultiObjectReader extends OsmServerReader { 17 18 private final MultiOsmReader rdr = new MultiOsmReader(); 18 19 19 20 public void readObject(PrimitiveId id, int version, ProgressMonitor progressMonitor) throws OsmTransferException { 20 21 readObject(id.getUniqueId(), version, id.getType(), progressMonitor); 21 22 } 22 23 23 24 public void readObject(long id,int version,OsmPrimitiveType type,ProgressMonitor progressMonitor) throws OsmTransferException { 24 25 StringBuffer sb = new StringBuffer(); … … 31 32 try (InputStream in = getInputStream(sb.toString(), progressMonitor.createSubTaskMonitor(1, true))) { 32 33 rdr.addData(in); 33 } catch ( Exception e) {34 } catch (IOException | IllegalDataException e) { 34 35 throw new OsmTransferException(e); 35 36 } finally {
Note:
See TracChangeset
for help on using the changeset viewer.