diff -r 74139325d305 -r 4653fc7609e7 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 Sun Oct 09 01:22:18 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();