Changeset 7029 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2014-04-29T16:38:07+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmExporter.java
r7005 r7029 43 43 } 44 44 45 public void exportData(File file, Layer layer, boolean noBackup) throws I OException {45 public void exportData(File file, Layer layer, boolean noBackup) throws IllegalArgumentException { 46 46 if (layer instanceof OsmDataLayer) { 47 47 save(file, (OsmDataLayer) layer, noBackup); -
trunk/src/org/openstreetmap/josm/io/session/GpxTracksSessionExporter.java
r6552 r7029 179 179 } 180 180 181 protected void addDataFile(OutputStream out) throws IOException{181 protected void addDataFile(OutputStream out) { 182 182 Writer writer = new OutputStreamWriter(out, Utils.UTF_8); 183 183 GpxWriter w = new GpxWriter(new PrintWriter(writer)); -
trunk/src/org/openstreetmap/josm/io/session/MarkerSessionExporter.java
r6552 r7029 17 17 import javax.swing.SwingConstants; 18 18 19 import org.openstreetmap.josm.tools.Utils;20 import org.w3c.dom.Element;21 22 19 import org.openstreetmap.josm.Main; 23 20 import org.openstreetmap.josm.data.gpx.GpxData; … … 28 25 import org.openstreetmap.josm.io.session.SessionWriter.ExportSupport; 29 26 import org.openstreetmap.josm.tools.GBC; 27 import org.openstreetmap.josm.tools.Utils; 28 import org.w3c.dom.Element; 30 29 31 30 public class MarkerSessionExporter implements SessionLayerExporter { … … 85 84 } 86 85 87 protected void addDataFile(OutputStream out) throws IOException{86 protected void addDataFile(OutputStream out) { 88 87 Writer writer = new OutputStreamWriter(out, Utils.UTF_8); 89 88 MarkerWriter w = new MarkerWriter(new PrintWriter(writer)); -
trunk/src/org/openstreetmap/josm/io/session/OsmDataSessionExporter.java
r6890 r7029 33 33 import javax.swing.SwingConstants; 34 34 35 import org.openstreetmap.josm.tools.Utils;36 import org.w3c.dom.Element;37 38 35 import org.openstreetmap.josm.actions.SaveAction; 39 36 import org.openstreetmap.josm.gui.layer.Layer; … … 46 43 import org.openstreetmap.josm.tools.GBC; 47 44 import org.openstreetmap.josm.tools.ImageProvider; 45 import org.openstreetmap.josm.tools.Utils; 46 import org.w3c.dom.Element; 48 47 49 48 public class OsmDataSessionExporter implements SessionLayerExporter { … … 213 212 } 214 213 215 protected void addDataFile(OutputStream out) throws IOException{214 protected void addDataFile(OutputStream out) { 216 215 Writer writer = new OutputStreamWriter(out, Utils.UTF_8); 217 216 OsmWriter w = OsmWriterFactory.createOsmWriter(new PrintWriter(writer), false, layer.data.getVersion());
Note:
See TracChangeset
for help on using the changeset viewer.