Changeset 8470 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2015-06-06T04:32:00+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/CachedFile.java
r8443 r8470 136 136 /** 137 137 * Set the caching strategy. Only applies to URLs. 138 * @param cachingStrategy 138 * @param cachingStrategy caching strategy 139 139 * @return this object 140 140 */ -
trunk/src/org/openstreetmap/josm/io/Compression.java
r7937 r8470 55 55 * Returns an un-compressing {@link InputStream} for {@code in}. 56 56 * 57 * @throws IOException 57 * @throws IOException if any I/O error occurs 58 58 */ 59 59 public InputStream getUncompressedInputStream(InputStream in) throws IOException { … … 74 74 * Returns an un-compressing {@link InputStream} for the {@link File} {@code file}. 75 75 * 76 * @throws IOException 76 * @throws IOException if any I/O error occurs 77 77 */ 78 78 @SuppressWarnings("resource") … … 84 84 * Returns an un-compressing {@link InputStream} for the {@link URL} {@code url}. 85 85 * 86 * @throws IOException 86 * @throws IOException if any I/O error occurs 87 87 */ 88 88 public static InputStream getUncompressedURLInputStream(URL url) throws IOException { … … 93 93 * Returns a compressing {@link OutputStream} for {@code out}. 94 94 * 95 * @throws IOException 95 * @throws IOException if any I/O error occurs 96 96 */ 97 97 public OutputStream getCompressedOutputStream(OutputStream out) throws IOException { … … 112 112 * Returns a compressing {@link OutputStream} for the {@link File} {@code file}. 113 113 * 114 * @throws IOException 114 * @throws IOException if any I/O error occurs 115 115 */ 116 116 @SuppressWarnings("resource") -
trunk/src/org/openstreetmap/josm/io/GpxReader.java
r8461 r8470 534 534 * @return true if file was properly parsed, false if there was error during 535 535 * parsing but some data were parsed anyway 536 * @throws SAXException 537 * @throws IOException 536 * @throws SAXException if any SAX parsing error occurs 537 * @throws IOException if any I/O error occurs 538 538 */ 539 539 public boolean parse(boolean tryToFinish) throws SAXException, IOException { -
trunk/src/org/openstreetmap/josm/io/NoteReader.java
r8377 r8470 197 197 * Initializes the reader with a given InputStream 198 198 * @param source - InputStream containing Notes XML 199 * @throws IOException 199 * @throws IOException if any I/O error occurs 200 200 */ 201 201 public NoteReader(InputStream source) throws IOException { … … 206 206 * Initializes the reader with a string as a source 207 207 * @param source UTF-8 string containing Notes XML to parse 208 * @throws IOException 208 * @throws IOException if any I/O error occurs 209 209 */ 210 210 public NoteReader(String source) throws IOException { … … 216 216 * the resulting Note objects 217 217 * @return List of Notes parsed from the input data 218 * @throws SAXException 219 * @throws IOException 218 * @throws SAXException if any SAX parsing error occurs 219 * @throws IOException if any I/O error occurs 220 220 */ 221 221 public List<Note> parse() throws SAXException, IOException { -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r8415 r8470 802 802 * @param monitor Progress monitor 803 803 * @return Note as it exists on the server after creation (ID assigned) 804 * @throws OsmTransferException 804 * @throws OsmTransferException if any error occurs during dialog with OSM API 805 805 */ 806 806 public Note createNote(LatLon latlon, String text, ProgressMonitor monitor) throws OsmTransferException { … … 824 824 * @param monitor Progress monitor 825 825 * @return Note returned by the API after the comment was added 826 * @throws OsmTransferException 826 * @throws OsmTransferException if any error occurs during dialog with OSM API 827 827 */ 828 828 public Note addCommentToNote(Note note, String comment, ProgressMonitor monitor) throws OsmTransferException { … … 842 842 * @param monitor Progress monitor 843 843 * @return Note returned by the API after the close operation 844 * @throws OsmTransferException 844 * @throws OsmTransferException if any error occurs during dialog with OSM API 845 845 */ 846 846 public Note closeNote(Note note, String closeMessage, ProgressMonitor monitor) throws OsmTransferException { … … 864 864 * @param monitor Progress monitor 865 865 * @return Note returned by the API after the reopen operation 866 * @throws OsmTransferException 866 * @throws OsmTransferException if any error occurs during dialog with OSM API 867 867 */ 868 868 public Note reopenNote(Note note, String reactivateMessage, ProgressMonitor monitor) throws OsmTransferException { -
trunk/src/org/openstreetmap/josm/io/OsmServerBackreferenceReader.java
r8390 r8470 149 149 * 150 150 * @return the data set 151 * @throws OsmTransferException 151 * @throws OsmTransferException if any error occurs during dialog with OSM API 152 152 */ 153 153 protected DataSet getReferringWays(ProgressMonitor progressMonitor) throws OsmTransferException { … … 160 160 * @param progressMonitor the progress monitor 161 161 * @return the data set 162 * @throws OsmTransferException 162 * @throws OsmTransferException if any error occurs during dialog with OSM API 163 163 */ 164 164 protected DataSet getReferringRelations(ProgressMonitor progressMonitor) throws OsmTransferException { -
trunk/src/org/openstreetmap/josm/io/OsmServerObjectReader.java
r8443 r8470 106 106 * @param progressMonitor the progress monitor. Set to {@link NullProgressMonitor#INSTANCE} if null 107 107 * @return the downloaded data 108 * @throws OsmTransferException 108 * @throws OsmTransferException if any error occurs during dialog with OSM API 109 109 */ 110 110 @Override -
trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
r8415 r8470 366 366 * Downloads notes from a given raw URL. The URL is assumed to be complete and no API limits are added 367 367 * 368 * @param progressMonitor 368 * @param progressMonitor progress monitor 369 369 * @return A list of notes parsed from the URL 370 * @throws OsmTransferException 370 * @throws OsmTransferException if any error occurs during dialog with OSM API 371 371 */ 372 372 public List<Note> parseRawNotes(final ProgressMonitor progressMonitor) throws OsmTransferException { … … 376 376 /** 377 377 * Download notes from a URL that contains a bzip2 compressed notes dump file 378 * @param progressMonitor 378 * @param progressMonitor progress monitor 379 379 * @return A list of notes parsed from the URL 380 * @throws OsmTransferException 380 * @throws OsmTransferException if any error occurs during dialog with OSM API 381 381 */ 382 382 public List<Note> parseRawNotesBzip2(final ProgressMonitor progressMonitor) throws OsmTransferException { -
trunk/src/org/openstreetmap/josm/io/ProgressInputStream.java
r8394 r8470 78 78 /** 79 79 * Increase ticker (progress counter and displayed text) by the given amount. 80 * @param amount 80 * @param amount number of ticks 81 81 */ 82 82 private void advanceTicker(int amount) { -
trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControlHttpServer.java
r8342 r8470 113 113 * Stops the HTTP server 114 114 * 115 * @throws IOException 115 * @throws IOException if any I/O error occurs 116 116 */ 117 117 public void stopServer() throws IOException { -
trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControlHttpsServer.java
r8404 r8470 114 114 * @param v value 115 115 * @return which one 116 * @throws IOException 116 * @throws IOException if any I/O error occurs 117 117 */ 118 118 private static GeneralName createGeneralName(String t, String v) throws IOException { -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/AddNodeHandler.java
r8464 r8470 76 76 /** 77 77 * Adds a node, implements the GET /add_node?lon=...&lat=... request. 78 * @param args 78 * @param args request arguments 79 79 */ 80 80 private void addNode(Map<String, String> args){ -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandler.java
r8415 r8470 57 57 * Check permission and parameters and handle request. 58 58 * 59 * @throws RequestHandlerForbiddenException 60 * @throws RequestHandlerBadRequestException 61 * @throws RequestHandlerErrorException 59 * @throws RequestHandlerForbiddenException if request is forbidden by preferences 60 * @throws RequestHandlerBadRequestException if request is invalid 61 * @throws RequestHandlerErrorException if an error occurs while processing request 62 62 */ 63 63 public final void handle() throws RequestHandlerForbiddenException, RequestHandlerBadRequestException, RequestHandlerErrorException { … … 70 70 /** 71 71 * Validates the request before attempting to perform it. 72 * @throws RequestHandlerBadRequestException 72 * @throws RequestHandlerBadRequestException if request is invalid 73 73 * @since 5678 74 74 */ … … 80 80 * This method of the subclass will do the real work. 81 81 * 82 * @throws RequestHandlerErrorException 83 * @throws RequestHandlerBadRequestException 82 * @throws RequestHandlerErrorException if an error occurs while processing request 83 * @throws RequestHandlerBadRequestException if request is invalid 84 84 */ 85 85 protected abstract void handleRequest() throws RequestHandlerErrorException, RequestHandlerBadRequestException; … … 133 133 134 134 /** 135 * Check permissions in preferences and display error message 136 * or ask for permission. 137 * 138 * @throws RequestHandlerForbiddenException 135 * Check permissions in preferences and display error message or ask for permission. 136 * 137 * @throws RequestHandlerForbiddenException if request is forbidden by preferences 139 138 */ 140 139 public final void checkPermission() throws RequestHandlerForbiddenException {
Note:
See TracChangeset
for help on using the changeset viewer.