Ignore:
Timestamp:
2009-06-28T14:40:12+02:00 (15 years ago)
Author:
stoecker
Message:

support URL's for preset images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/MirroredInputStream.java

    r1523 r1711  
    2121public class MirroredInputStream extends InputStream {
    2222    InputStream fs = null;
     23    File file = null;
    2324
    2425    public MirroredInputStream(String name) throws IOException {
     
    3031    }
    3132
     33    public MirroredInputStream(String name, String destDir) throws IOException {
     34        this(name, destDir, -1L);
     35    }
     36
    3237    public MirroredInputStream(String name, String destDir, long maxTime) throws IOException {
    3338        URL url;
    34         File file = null;
    3539        try {
    3640            url = new URL(name);
     
    5357            throw new IOException();
    5458        fs = new FileInputStream(file);
     59    }
     60
     61    public File getFile()
     62    {
     63       return file;
    5564    }
    5665
Note: See TracChangeset for help on using the changeset viewer.