- Timestamp:
- 2017-07-12T23:47:15+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/ChangesetQuery.java
r11878 r12470 23 23 import org.openstreetmap.josm.tools.date.DateUtils; 24 24 25 /** 26 * Data class to collect restrictions (parameters) for downloading changesets from the 27 * OSM API. 28 * <p> 29 * @see <a href="https://wiki.openstreetmap.org/wiki/API_v0.6#Query:_GET_.2Fapi.2F0.6.2Fchangesets">OSM API 0.6 call "/changesets?"</a> 30 */ 25 31 public class ChangesetQuery { 26 32 -
trunk/src/org/openstreetmap/josm/io/DiffResultProcessor.java
r11553 r12470 34 34 import org.xml.sax.helpers.DefaultHandler; 35 35 36 /** 37 * Helper class to process the OSM API server response to a "diff" upload. 38 * <p> 39 * New primitives (uploaded with negative id) will be assigned a positive id, etc. 40 * The goal is to have a clean state, just like a fresh download (assuming no 41 * concurrent uploads by other users have happened in the meantime). 42 * <p> 43 * @see <a href="https://wiki.openstreetmap.org/wiki/API_v0.6#Response_10">API 0.6 diff upload response</a> 44 */ 36 45 public class DiffResultProcessor { 37 46 -
trunk/src/org/openstreetmap/josm/io/FileExporter.java
r10345 r12470 12 12 import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeListener; 13 13 14 /** 15 * Abstract base class for file exporters - IO classes that save layers to a file. 16 */ 14 17 public abstract class FileExporter implements ActiveLayerChangeListener { 15 18 … … 28 31 } 29 32 33 /** 34 * Check if this exporter can export a certain layer to a certain file. 35 * 36 * Most exporters support just a single layer type. 37 * @param pathname the target file name (check file extension using the {@link #filter} 38 * @param layer the layer requested for export 39 * @return true, if the exporter can handle the layer and filename is okay 40 */ 30 41 public boolean acceptFile(File pathname, Layer layer) { 31 42 return filter.acceptName(pathname.getName()); 32 43 } 33 44 45 /** 46 * Execute the data export. (To be overridden by subclasses.) 47 * 48 * @param file target file 49 * @param layer the layer to export 50 * @throws IOException in case of an IO error 51 */ 34 52 public void exportData(File file, Layer layer) throws IOException { 35 53 throw new IOException(tr("Could not export ''{0}''.", file.getName())); -
trunk/src/org/openstreetmap/josm/io/MissingOAuthAccessTokenException.java
r9079 r12470 2 2 package org.openstreetmap.josm.io; 3 3 4 /** 5 * Exception thrown when a valid OAuth access token was expected, but not found. 6 */ 4 7 public class MissingOAuthAccessTokenException extends OsmTransferException { 5 8 … … 12 15 13 16 /** 14 * Constructs a new {@code OsmTransferException} with the specified detail message and cause.17 * Constructs a new {@code MissingOAuthAccessTokenException} with the specified detail message and cause. 15 18 * @param message The detail message (which is saved for later retrieval by the {@link #getMessage} method) 16 19 * @param cause The cause (which is saved for later retrieval by the {@link #getCause} method). … … 22 25 23 26 /** 24 * Constructs a new {@code OsmTransferException} with the specified detail message.27 * Constructs a new {@code MissingOAuthAccessTokenException} with the specified detail message. 25 28 * @param message The detail message (which is saved for later retrieval by the {@link #getMessage} method) 26 29 */ … … 30 33 31 34 /** 32 * Constructs a new {@code OsmTransferException} with the specified cause.35 * Constructs a new {@code MissingOAuthAccessTokenException} with the specified cause. 33 36 * @param cause The cause (which is saved for later retrieval by the {@link #getCause} method). 34 37 * A null value is permitted, and indicates that the cause is nonexistent or unknown. -
trunk/src/org/openstreetmap/josm/io/OsmChangeImporter.java
r10615 r12470 18 18 import org.openstreetmap.josm.gui.util.GuiHelper; 19 19 20 /** 21 * File importer that reads OSM change files (*.osc). 22 * @see <a href="http://wiki.openstreetmap.org/wiki/OsmChange">OsmChange</a> 23 */ 20 24 public class OsmChangeImporter extends FileImporter { 21 25 -
trunk/src/org/openstreetmap/josm/io/OsmConnection.java
r11544 r12470 85 85 * @param connection the connection 86 86 * 87 * @throws OsmTransferException if there is currently no OAuth Access Token configured87 * @throws MissingOAuthAccessTokenException if there is currently no OAuth Access Token configured 88 88 * @throws OsmTransferException if signing fails 89 89 */ -
trunk/src/org/openstreetmap/josm/io/OsmImporter.java
r10615 r12470 19 19 import org.openstreetmap.josm.gui.util.GuiHelper; 20 20 21 /** 22 * File importer that reads *.osm data files. (main storage format for OSM data 23 * in JOSM) 24 */ 21 25 public class OsmImporter extends FileImporter { 22 26 -
trunk/src/org/openstreetmap/josm/io/OsmServerReadPostprocessor.java
r10600 r12470 5 5 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 6 6 7 /** 8 * Interface for plugins to process osm data after it has been downloaded or read 9 * from file. 10 * @see OsmReader#registerPostprocessor(OsmServerReadPostprocessor) 11 */ 7 12 @FunctionalInterface 8 13 public interface OsmServerReadPostprocessor { 9 14 /** 15 * Execute the post processor. 16 * @param ds the dataset to read or modify 17 * @param progress the progress monitor 18 */ 10 19 void postprocessDataSet(DataSet ds, ProgressMonitor progress); 11 20 } -
trunk/src/org/openstreetmap/josm/io/OsmServerUserInfoReader.java
r10404 r12470 27 27 import org.xml.sax.SAXException; 28 28 29 /** 30 * Download and parse info of the logged in user (OSM API v0.6 "/user/details"). 31 * @see <a href="https://wiki.openstreetmap.org/wiki/API_v0.6#Details_of_the_logged-in_user">/user/details</a> 32 */ 29 33 public class OsmServerUserInfoReader extends OsmServerReader { 30 34 -
trunk/src/org/openstreetmap/josm/io/OsmServerWritePostprocessor.java
r10600 r12470 7 7 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 8 8 9 /** 10 * Interface for plugins to process osm data after it has been uploaded to the 11 * OSM server. 12 * @see OsmServerWriter#registerPostprocessor(OsmServerWritePostprocessor) 13 */ 9 14 @FunctionalInterface 10 15 public interface OsmServerWritePostprocessor { -
trunk/src/org/openstreetmap/josm/io/StreamProgressUpdater.java
r11553 r12470 9 9 import org.openstreetmap.josm.tools.Utils; 10 10 11 /** 12 * Helper class for {@link StreamProgressUpdater} to encapsulate interaction with 13 * the {@link ProgressMonitor}. 14 */ 11 15 final class StreamProgressUpdater { 12 16
Note:
See TracChangeset
for help on using the changeset viewer.