com.threerings.resource
Class KnownAvailabilityResourceBundle

java.lang.Object
  extended by com.threerings.resource.ResourceBundle
      extended by com.threerings.resource.KnownAvailabilityResourceBundle
Direct Known Subclasses:
NetworkResourceBundle

public abstract class KnownAvailabilityResourceBundle
extends ResourceBundle

Keeps a set of known resources and allows implementors to ask if a resource is in it before performing a potentially expensive failed lookup.


Field Summary
protected  Set<String> _rsrcs
          All the resources included in this bundle.
 
Constructor Summary
KnownAvailabilityResourceBundle(Set<String> availableResources)
           
 
Method Summary
protected  boolean isPossiblyAvailable(String path)
          Returns whether we believe the path to be available.
 
Methods inherited from class com.threerings.resource.ResourceBundle
getIdent, getImageResource, getResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rsrcs

protected Set<String> _rsrcs
All the resources included in this bundle.

Constructor Detail

KnownAvailabilityResourceBundle

public KnownAvailabilityResourceBundle(Set<String> availableResources)
Method Detail

isPossiblyAvailable

protected boolean isPossiblyAvailable(String path)
Returns whether we believe the path to be available. If we have no list, we assume everything may be available.