Changeset 9949 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-03-07T21:45:35+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/HttpClient.java
r9935 r9949 11 11 import java.net.CookieHandler; 12 12 import java.net.CookieManager; 13 import java.net.HttpRetryException;14 13 import java.net.HttpURLConnection; 15 14 import java.net.URL; … … 522 521 523 522 /** 524 * This method is used to enable streaming of a HTTP request body without internal buffering,525 * when the content length is known in advance.526 * <p>527 * An exception will be thrown if the application attempts to write more data than the indicated content-length,528 * or if the application closes the OutputStream before writing the indicated amount.529 * <p>530 * When output streaming is enabled, authentication and redirection cannot be handled automatically.531 * A {@linkplain HttpRetryException} will be thrown when reading the response if authentication or redirection532 * are required. This exception can be queried for the details of the error.533 *534 * @param contentLength The number of bytes which will be written to the OutputStream535 * @return {@code this}536 * @see HttpURLConnection#setFixedLengthStreamingMode(long)537 * @since 9178538 * @deprecated Submitting data via POST, PUT, DELETE automatically sets this property on the connection539 */540 @Deprecated541 public HttpClient setFixedLengthStreamingMode(long contentLength) {542 return this;543 }544 545 /**546 523 * Sets the {@code Accept} header. 547 524 * @param accept header value -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r9827 r9949 132 132 */ 133 133 public enum ImageSizes { 134 /** SMALL_ICON value of on Action */134 /** SMALL_ICON value of an Action */ 135 135 SMALLICON(Main.pref.getInteger("iconsize.smallicon", 16)), 136 /** LARGE_ICON_KEY value of on Action */136 /** LARGE_ICON_KEY value of an Action */ 137 137 LARGEICON(Main.pref.getInteger("iconsize.largeicon", 24)), 138 138 /** map icon */ … … 375 375 overlayInfo.add(overlay); 376 376 return this; 377 }378 379 /**380 * Convert enumerated size values to real numbers381 * @param size the size enumeration382 * @return dimension of image in pixels383 * @since 7687384 * @deprecated Use {@link ImageSizes#getImageDimension()} instead385 */386 @Deprecated387 public static Dimension getImageSizes(ImageSizes size) {388 return (size == null ? ImageSizes.DEFAULT : size).getImageDimension();389 377 } 390 378
Note: See TracChangeset
for help on using the changeset viewer.