net.hasor.plugins.resource
接口 ResourceLoader

所有已知实现类:
ClassPathResourceLoader, PathResourceLoader, ZipResourceLoader

public interface ResourceLoader

版本:
: 2013-6-6
作者:
赵永春 (zyc@hasor.net)

方法摘要
 boolean canModify(String resourcePath)
          测试资源是否可能被改变。
 void close(Object resource)
          装载指定资源。
 boolean exist(String resourcePath)
          测试资源是否存在。
 InputStream getResourceAsStream(String resourcePath)
          装载指定资源。
 

方法详细信息

getResourceAsStream

InputStream getResourceAsStream(String resourcePath)
                                throws IOException
装载指定资源。

抛出:
IOException

close

void close(Object resource)
           throws IOException
装载指定资源。

抛出:
IOException

canModify

boolean canModify(String resourcePath)
                  throws IOException
测试资源是否可能被改变。

抛出:
IOException

exist

boolean exist(String resourcePath)
              throws IOException
测试资源是否存在。

抛出:
IOException


Copyright © 2013-2014. All Rights Reserved.