Commit Graph

10 Commits

Author SHA1 Message Date
Michael Bayne 4bfbb96dfe We need to override hashCode() and equals() because the default
implementations do a fucking DNS lookup on the host of the URL. The degree
to which that violates expectations about the "expense" of calling
hashCode() is so astronomical as to be unexpressible without complicated
metaphor.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3421 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-23 01:56:54 +00:00
Ray Greenwell 74ff1f6fc5 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
2005-03-19 00:17:58 +00:00
Ray Greenwell fade675350 Allow resource urls that have a blank resource set specified to
load resources to load from the default sets.
(A normal url would be "resource://<set>/<path>", one using the default set
would be "resource:///<path>". Goofy.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3396 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-11 22:08:09 +00:00
Michael Bayne a9720fd905 LGPLed the library. Hello world.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3099 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:21:06 +00:00
Michael Bayne 63fad5a1e6 Moved attachable URL factory-related comment into the appropriate class.
Added extra special magic to allow the resource: URLs to extract a tile
from an image that is actually made up of a bunch of smaller images. It's
so money.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3083 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-17 00:49:58 +00:00
Ray Greenwell e140fd6301 Use the AttachableURLFactory.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2696 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-09 18:44:52 +00:00
Michael Bayne f1bcf698db Rather than allow an Error to be thrown, we just log a warning and go on
about our business.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2549 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-07 05:31:09 +00:00
Ray Greenwell 61ce868a11 Register the "resource" url handler with a factory instead of using
the system property. The factory works under JWS, but is a little
worrisome because you can only have one factory per JVM.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2547 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-06 18:48:18 +00:00
Ray Greenwell 26d15d3d23 Corrected documentation: the resource set is supplied, not the specific
bundle.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2450 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-24 07:26:45 +00:00
Ray Greenwell 5d6e746b88 Wire up the magic so that data in resource bundles can be acquired via
URLs.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2449 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-24 07:23:47 +00:00