Changeset 8929 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2015-10-22T16:20:56+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/BoundingBoxDownloader.java
r8926 r8929 114 114 /** 115 115 * Returns the name of the download task to be displayed in the {@link ProgressMonitor}. 116 * @return task name 116 117 */ 117 118 protected String getTaskName() { … … 121 122 /** 122 123 * Builds the request part for the bounding box. 124 * @param lon1 left 125 * @param lat1 bottom 126 * @param lon2 right 127 * @param lat2 top 128 * @return "map?bbox=left,bottom,right,top" 123 129 */ 124 130 protected String getRequestForBbox(double lon1, double lat1, double lon2, double lat2) { … … 128 134 /** 129 135 * Parse the given input source and return the dataset. 136 * @param source input stream 137 * @param progressMonitor progress monitor 138 * @return dataset 130 139 * @throws IllegalDataException if an error was found while parsing the OSM data 131 140 * -
trunk/src/org/openstreetmap/josm/io/CachedFile.java
r8846 r8929 351 351 * 2 resources that point to the same url, but that are to be stored in different 352 352 * directories will not share a cache file. 353 * @param url URL 354 * @param destDir destination directory 355 * @return Preference key 353 356 */ 354 357 private static String getPrefKey(URL url, String destDir) { -
trunk/src/org/openstreetmap/josm/io/Compression.java
r8470 r8929 54 54 /** 55 55 * Returns an un-compressing {@link InputStream} for {@code in}. 56 * @param in raw input stream 57 * @return un-compressing input stream 56 58 * 57 59 * @throws IOException if any I/O error occurs … … 73 75 /** 74 76 * Returns an un-compressing {@link InputStream} for the {@link File} {@code file}. 75 * 77 * @param file file 78 * @return un-compressing input stream 76 79 * @throws IOException if any I/O error occurs 77 80 */ … … 83 86 /** 84 87 * Returns an un-compressing {@link InputStream} for the {@link URL} {@code url}. 88 * @param url URL 89 * @return un-compressing input stream 85 90 * 86 91 * @throws IOException if any I/O error occurs … … 92 97 /** 93 98 * Returns a compressing {@link OutputStream} for {@code out}. 99 * @param out raw output stream 100 * @return compressing output stream 94 101 * 95 102 * @throws IOException if any I/O error occurs … … 111 118 /** 112 119 * Returns a compressing {@link OutputStream} for the {@link File} {@code file}. 120 * @param file file 121 * @return compressing output stream 113 122 * 114 123 * @throws IOException if any I/O error occurs -
trunk/src/org/openstreetmap/josm/io/FileImporter.java
r7596 r8929 142 142 * they are opened in the order of their priorities. 143 143 * Highest priority comes first. 144 * @return priority 144 145 */ 145 146 public double getPriority() { -
trunk/src/org/openstreetmap/josm/io/OsmImporter.java
r8926 r8929 113 113 * @param layerName name of generated layer 114 114 * @param progressMonitor handler for progress monitoring and canceling 115 * @return Utility class containing imported OSM layer, and a task to run after it is added to MapView 115 116 * @throws IllegalDataException if an error was found while parsing the OSM data 116 117 */ -
trunk/src/org/openstreetmap/josm/io/XmlWriter.java
r8510 r8929 43 43 * new JLabel("<html>&apos;</html>") 44 44 * literally as 6 character string, see #7558) 45 * @return XML1.0 string 45 46 */ 46 47 public static String encode(String unencoded, boolean keepApos) { -
trunk/src/org/openstreetmap/josm/io/auth/AbstractCredentialsAgent.java
r8388 r8929 96 96 * Provide the text for a checkbox that offers to save the 97 97 * username and password that has been entered by the user. 98 * @return checkbox text 98 99 */ 99 100 public abstract String getSaveUsernameAndPasswordCheckboxText(); -
trunk/src/org/openstreetmap/josm/io/auth/CredentialsAgent.java
r8509 r8929 44 44 45 45 /** 46 * 46 * Returns the credentials needed to to access host. 47 47 * @param requestorType the type of service. {@link RequestorType#SERVER} for the OSM API server, {@link RequestorType#PROXY} 48 48 * for a proxy server … … 50 50 * @param noSuccessWithLastResponse true, if the last request with the supplied credentials failed; false otherwise. 51 51 * If true, implementations of this interface are advised to prompt the user for new credentials. 52 * @return the credentials 52 53 * @throws CredentialsAgentException if a problem occurs in a implementation of this interface 53 54 54 */ 55 55 CredentialsAgentResponse getCredentials(RequestorType requestorType, String host, boolean noSuccessWithLastResponse) … … 73 73 void storeOAuthAccessToken(OAuthToken accessToken) throws CredentialsAgentException; 74 74 75 76 75 /** 77 76 * Provide a Panel that is shown below the API password / username fields 78 77 * in the JOSM Preferences. (E.g. a warning that password is saved unencrypted.) 78 * @return Panel 79 79 */ 80 80 Component getPreferencesDecorationPanel(); 81 82 81 } -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/AddWayHandler.java
r8846 r8929 120 120 121 121 /** 122 * Find the node with almost the same ccords in dataset or in already added nodes 122 * Find the node with almost the same coords in dataset or in already added nodes 123 * @param ll coordinates 124 * @return node with almost the same coords 123 125 * @since 5845 124 126 */ -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandler.java
r8846 r8929 200 200 201 201 /** 202 * Returns the request parameters. 203 * @param uri URI as string 204 * @return map of request parameters 202 205 * @see <a href="http://blog.lunatech.com/2009/02/03/what-every-web-developer-must-know-about-url-encoding"> 203 206 * What every web developer must know about URL encoding</a> -
trunk/src/org/openstreetmap/josm/io/session/SessionReader.java
r8926 r8929 171 171 * - relativ to the .joz file: 172 172 * "../save/data.osm" ("../" steps out of the archive) 173 * @param uriStr URI as string 174 * @return the InputStream 173 175 * 174 176 * @throws IOException Thrown when no Stream can be opened for the given URI, e.g. when the linked file has been deleted. … … 246 248 /** 247 249 * Name of the layer that is currently imported. 250 * @return layer name 248 251 */ 249 252 public String getLayerName() { … … 253 256 /** 254 257 * Index of the layer that is currently imported. 258 * @return layer index 255 259 */ 256 260 public int getLayerIndex() { … … 261 265 * Dependencies - maps the layer index to the importer of the given 262 266 * layer. All the dependent importers have loaded completely at this point. 267 * @return layer dependencies 263 268 */ 264 269 public List<LayerDependency> getLayerDependencies() {
Note:
See TracChangeset
for help on using the changeset viewer.