Changeset 7596 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2014-10-04T17:41:26+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/FileImporter.java
r7392 r7596 48 48 /** 49 49 * A batch importer is a file importer that prefers to read multiple files at the same time. 50 * @return {@code true} if this importer is a batch importer 50 51 */ 51 52 public boolean isBatchImporter() { … … 55 56 /** 56 57 * Needs to be implemented if isBatchImporter() returns false. 58 * @param file file to import 59 * @param progressMonitor progress monitor 60 * @throws IOException if any I/O error occurs 61 * @throws IllegalDataException if invalid data is read 57 62 */ 58 63 public void importData(File file, ProgressMonitor progressMonitor) throws IOException, IllegalDataException { … … 62 67 /** 63 68 * Needs to be implemented if isBatchImporter() returns true. 69 * @param files files to import 70 * @param progressMonitor progress monitor 71 * @throws IOException if any I/O error occurs 72 * @throws IllegalDataException if invalid data is read 64 73 */ 65 74 public void importData(List<File> files, ProgressMonitor progressMonitor) throws IOException, IllegalDataException { -
trunk/src/org/openstreetmap/josm/io/NmeaReader.java
r7518 r7596 3 3 4 4 import java.io.BufferedReader; 5 import java.io.IOException; 5 6 import java.io.InputStream; 6 7 import java.io.InputStreamReader; … … 165 166 } 166 167 167 public NmeaReader(InputStream source) {168 public NmeaReader(InputStream source) throws IOException { 168 169 169 170 // create the data tree … … 201 202 data.tracks.add(new ImmutableGpxTrack(currentTrack, Collections.<String, Object>emptyMap())); 202 203 203 } catch ( Exception e) {204 } catch (IllegalDataException e) { 204 205 Main.warn(e); 205 206 }
Note:
See TracChangeset
for help on using the changeset viewer.