Changeset 28142 in osm for applications/editors/josm/plugins/opendata/src
- Timestamp:
- 2012-03-23T21:22:46+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/NetworkReader.java
r28113 r28142 85 85 } else if (contentType.startsWith("application/octet-stream")) { 86 86 //return OdsReader.class;//FIXME, can be anything 87 } else if (contentType.startsWith("text/csv")) { 88 return CsvReader.class; 87 89 } else if (contentType.startsWith("text/plain")) {//TODO: extract charset 88 90 return CsvReader.class; … … 138 140 if (readerClass == null) { 139 141 readerClass = findReaderByExtension(url.toLowerCase()); 140 if (readerClass != null) {141 filename = url.substring(url.lastIndexOf('/'));142 }143 142 } 144 143 if (readerClass == null) { 145 144 throw new OsmTransferException("Cannot find appropriate reader !");//TODO handler job ? 145 } else if (findReaderByExtension(url.toLowerCase()) != null) { 146 filename = url.substring(url.lastIndexOf('/')+1); 146 147 } 147 148 if (readerClass.equals(ZipReader.class)) {
Note:
See TracChangeset
for help on using the changeset viewer.