Changeset 10409 in osm


Ignore:
Timestamp:
2008-09-02T18:56:12+02:00 (16 years ago)
Author:
stoecker
Message:

updated to josm changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/tagging-preset-tester/src/org/openstreetmap/josm/plugins/taggingpresettester/TaggingPresetTester.java

    r9948 r10409  
    77import java.io.IOException;
    88import java.io.InputStream;
     9import java.io.InputStreamReader;
     10import java.io.BufferedReader;
    911import java.net.URL;
    1012import java.util.Collection;
     
    4042                                if (source.startsWith("http") || source.startsWith("ftp") || source.startsWith("file"))
    4143                                        in = new URL(source).openStream();
    42                                 else if (source.startsWith("resource://"))
    43                                         in = TaggingPresetTester.class.getResourceAsStream(source.substring("resource:/".length()));
    4444                                else
    4545                                        in = new FileInputStream(source);
    46                                 allPresets.addAll(TaggingPreset.readAll(in));
     46                                allPresets.addAll(TaggingPreset.readAll(new BufferedReader(new InputStreamReader(in))));
    4747                        } catch (IOException e) {
    4848                                e.printStackTrace();
Note: See TracChangeset for help on using the changeset viewer.