Changeset 10217 in josm for trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java
- Timestamp:
- 2016-05-15T16:37:33+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java
r10216 r10217 54 54 } 55 55 56 /** 57 * Constructs a {@code ImageryReader} from a given filename, URL or internal resource. 58 * 59 * @param source can be:<ul> 60 * <li>relative or absolute file name</li> 61 * <li>{@code file:///SOME/FILE} the same as above</li> 62 * <li>{@code http://...} a URL. It will be cached on disk.</li> 63 * <li>{@code resource://SOME/FILE} file from the classpath (usually in the current *.jar)</li> 64 * <li>{@code josmdir://SOME/FILE} file inside josm user data directory (since r7058)</li> 65 * <li>{@code josmplugindir://SOME/FILE} file inside josm plugin directory (since r7834)</li></ul> 66 */ 56 67 public ImageryReader(String source) { 57 68 this.source = source; 58 69 } 59 70 71 /** 72 * Parses imagery source. 73 * @return list of imagery info 74 * @throws SAXException if any SAX error occurs 75 * @throws IOException if any I/O error occurs 76 */ 60 77 public List<ImageryInfo> parse() throws SAXException, IOException { 61 78 Parser parser = new Parser(); … … 328 345 } 329 346 break; 347 default: // Do nothing 330 348 } 331 349 } … … 456 474 projections = null; 457 475 break; 458 /* nothing to do for these or the unknown type:459 476 case NO_TILE: 460 477 case NO_TILESUM: 461 478 case METADATA: 462 479 case UNKNOWN: 463 break;464 */480 default: 481 // nothing to do for these or the unknown type 465 482 } 466 483 }
Note:
See TracChangeset
for help on using the changeset viewer.