Ignore:
Timestamp:
2014-03-24T22:30:15+01:00 (10 years ago)
Author:
donvip
Message:

[josm_surveyor] code cleanup, https links support

Location:
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/PlayAudioAction.java

    r19211 r30362  
    4848                    AudioInputStream stream = AudioSystem.getAudioInputStream(in);
    4949
    50                     // From URL
    51 //                  stream = AudioSystem.getAudioInputStream(new URL("http://hostname/audiofile"));
    52 
    5350                    // At present, ALAW and ULAW encodings must be converted
    5451                    // to PCM_SIGNED before it can be played
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/util/ResourceLoader.java

    r13497 r30362  
    3030    public static InputStream getInputStream(String source) throws IOException {
    3131        InputStream in = null;
    32         if (source.startsWith("http://") || source.startsWith("ftp://") || source.startsWith("file:")) {
     32        if (source.startsWith("http://") || source.startsWith("https://") || source.startsWith("ftp://") || source.startsWith("file:")) {
    3333            in = new URL(source).openStream();
    3434        } else if (source.startsWith("resource://")) {
     
    4040        return in;
    4141    }
    42 
    4342}
Note: See TracChangeset for help on using the changeset viewer.