No permissions are needed to load *any* resource from a resource bundle.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3417 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2005-03-19 00:17:58 +00:00
parent 9434b6e9bc
commit 74ff1f6fc5
@@ -29,6 +29,8 @@ import java.net.URL;
import java.net.URLConnection;
import java.net.URLStreamHandler;
import java.security.Permission;
import javax.imageio.ImageIO;
import javax.imageio.stream.ImageInputStream;
@@ -108,6 +110,15 @@ public class Handler extends URLStreamHandler
return _stream;
}
// documentation inherited
public Permission getPermission ()
throws IOException
{
// We allow anything in the resource bundle to be loaded
// without any permission restrictions.
return null;
}
protected InputStream _stream;
};
}