com.jme3.asset.plugins
Class HttpZipLocator

java.lang.Object
  extended by com.jme3.asset.plugins.HttpZipLocator
All Implemented Interfaces:
AssetLocator

public class HttpZipLocator
extends java.lang.Object
implements AssetLocator


Constructor Summary
HttpZipLocator()
           
 
Method Summary
 void load(java.net.URL url)
           
 AssetInfo locate(AssetManager manager, AssetKey key)
          Request to locate an asset.
 java.io.InputStream openStream(java.lang.String name)
           
 void setRootPath(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpZipLocator

public HttpZipLocator()
Method Detail

load

public void load(java.net.URL url)
          throws java.io.IOException
Throws:
java.io.IOException

openStream

public java.io.InputStream openStream(java.lang.String name)
                               throws java.io.IOException
Throws:
java.io.IOException

setRootPath

public void setRootPath(java.lang.String path)
Specified by:
setRootPath in interface AssetLocator
Parameters:
path - The root path where to look for assets. Typically this method will only be called once per instance of an asset locator.

locate

public AssetInfo locate(AssetManager manager,
                        AssetKey key)
Description copied from interface: AssetLocator
Request to locate an asset. The asset key contains a name identifying the asset. If an asset was not found, null should be returned. The AssetInfo implementation provided should have a proper return value for its AssetInfo.openStream() method.

Specified by:
locate in interface AssetLocator
Returns:
The AssetInfo that was located, or null if not found.