|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.resource.ResourceBundle
com.threerings.resource.KnownAvailabilityResourceBundle
com.threerings.resource.NetworkResourceBundle
public class NetworkResourceBundle
Resource bundle that retrieves its contents via HTTP over the network from a root URL.
| Field Summary | |
|---|---|
protected URL |
_bundleURL
Our root url to the resources in this bundle. |
protected String |
_ident
Our identifier for this bundle. |
| Fields inherited from class com.threerings.resource.KnownAvailabilityResourceBundle |
|---|
_rsrcs |
| Constructor Summary | |
|---|---|
NetworkResourceBundle(String root,
String path,
Set<String> rsrcList)
|
|
| Method Summary | |
|---|---|
String |
getIdent()
Uniquely identifies this resource bundle. |
BufferedImage |
getImageResource(String path,
boolean useFastIO)
Decodes and returns the specified image resource. |
InputStream |
getResource(String path)
Fetches the named resource from this bundle. |
protected static InputStream |
getResource(URL resourceUrl)
|
String |
toString()
Returns a string representation of this resource bundle. |
| Methods inherited from class com.threerings.resource.KnownAvailabilityResourceBundle |
|---|
isPossiblyAvailable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String _ident
protected URL _bundleURL
| Constructor Detail |
|---|
public NetworkResourceBundle(String root,
String path,
Set<String> rsrcList)
| Method Detail |
|---|
public String getIdent()
ResourceBundle
getIdent in class ResourceBundle
public InputStream getResource(String path)
throws IOException
ResourceBundlesounds/scream.au.
getResource in class ResourceBundlepath - the path to the resource in this jar file.
IOException - thrown if an error occurs locating the resource in the jar file.protected static InputStream getResource(URL resourceUrl)
public BufferedImage getImageResource(String path,
boolean useFastIO)
throws IOException
ResourceBundle
getImageResource in class ResourceBundleIOExceptionpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||