Changeset 5863 in josm for trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
- Timestamp:
- 2013-04-14T22:20:20+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
r5587 r5863 38 38 * Open a connection to the given url and return a reader on the input stream 39 39 * from that connection. In case of user cancel, return <code>null</code>. 40 * @param urlStr The exact url to connect to. 41 * @param pleaseWaitDlg 40 * Relative URL's are directed to API base URL. 41 * @param urlStr The url to connect to. 42 * @param progressMonitor progress monitoring and abort handler 42 43 * @return An reader reading the input stream (servers answer) or <code>null</code>. 44 * @throws OsmTransferException thrown if data transfer errors occur 43 45 */ 44 46 protected InputStream getInputStream(String urlStr, ProgressMonitor progressMonitor) throws OsmTransferException { … … 52 54 } 53 55 56 /** 57 * Retrun the base URL for relative URL requests 58 * @return base url of API 59 */ 54 60 protected String getBaseUrl() { 55 61 return api.getBaseUrl(); 56 62 } 57 63 64 /** 65 * Open a connection to the given url and return a reader on the input stream 66 * from that connection. In case of user cancel, return <code>null</code>. 67 * @param urlStr The exact url to connect to. 68 * @param progressMonitor progress monitoring and abort handler 69 * @return An reader reading the input stream (servers answer) or <code>null</code>. 70 * @throws OsmTransferException thrown if data transfer errors occur 71 */ 58 72 protected InputStream getInputStreamRaw(String urlStr, ProgressMonitor progressMonitor) throws OsmTransferException { 59 73 try {
Note:
See TracChangeset
for help on using the changeset viewer.
