com.android.ide.common.rendering.api
Class AssetRepository

java.lang.Object
  extended by com.android.ide.common.rendering.api.AssetRepository

public class AssetRepository
extends java.lang.Object

Represents the interface for dealing with assets.


Constructor Summary
AssetRepository()
           
 
Method Summary
 boolean isSupported()
          Returns whether the IDE supports assets.
 java.io.InputStream openAsset(java.lang.String path, int mode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetRepository

public AssetRepository()
Method Detail

isSupported

public boolean isSupported()
Returns whether the IDE supports assets. This is used to determine if error messages should be thrown.


openAsset

public java.io.InputStream openAsset(java.lang.String path,
                                     int mode)
                              throws java.io.IOException
Throws:
java.io.IOException