diff -r 74139325d305 -r 08c214a5c52d src/org/sonews/util/io/Resource.java --- a/src/org/sonews/util/io/Resource.java Sun Aug 29 18:17:37 2010 +0200 +++ b/src/org/sonews/util/io/Resource.java Mon Sep 12 20:24:40 2011 +0200 @@ -19,6 +19,8 @@ package org.sonews.util.io; import java.io.BufferedReader; +import java.io.File; +import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; @@ -59,6 +61,10 @@ try { URL url = getAsURL(name); if (url == null) { + File file = new File(name); + if(file.exists()) { + return new FileInputStream(file); + } return null; } else { return url.openStream();