diff -r 7d0e65712a95 -r 5d7d1adf387f src/org/sonews/util/io/Resource.java --- a/src/org/sonews/util/io/Resource.java Tue Jun 07 09:23:34 2011 +0200 +++ b/src/org/sonews/util/io/Resource.java Tue Jun 07 11:55:22 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();