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:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user