if (uri.startsWith("file:
if (uri.startsWith("file:")) {
    public InputStream getInputStream(String uri) {        InputStream is = null;        uri = resolveURI(uri);        if (uri.startsWith("file://")) {            File file = null;            try {                file = new File(new URI(uri));            } catch (URISyntaxException e) {                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.            }            if (file.isDirectory()) {                String dirlist = DirectoryLister.list(file);                try {                    is = new ByteArrayInputStream(dirlist.getBytes("UTF-8"));                } catch (UnsupportedEncodingException e) {                    e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.                }                return is;            }        }        try {            is = new URL(uri).openStream();        } catch (java.net.MalformedURLException e) {            XRLog.exception("bad URL given: " + uri, e);        } catch (java.io.IOException e) {            XRLog.exception("IO problem for " + uri, e);        }        return is;    }