|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.taobao.metamorphosis.utils.ResourceUtils
public class ResourceUtils
构造方法摘要 | |
---|---|
ResourceUtils()
|
方法摘要 | |
---|---|
static File |
getResourceAsFile(ClassLoader loader,
String resource)
Returns a resource on the classpath as a File object |
static File |
getResourceAsFile(String resource)
Returns a resource on the classpath as a File object |
static Properties |
getResourceAsProperties(ClassLoader loader,
String resource)
Returns a resource on the classpath as a Properties object |
static Properties |
getResourceAsProperties(String resource)
Returns a resource on the classpath as a Properties object |
static Reader |
getResourceAsReader(ClassLoader loader,
String resource)
Returns a resource on the classpath as a Reader object |
static InputStreamReader |
getResourceAsReader(String resource)
Returns a resource on the classpath as a Reader object |
static InputStream |
getResourceAsStream(ClassLoader loader,
String resource)
Returns a resource on the classpath as a Stream object |
static InputStream |
getResourceAsStream(String resource)
Returns a resource on the classpath as a Stream object |
static URL |
getResourceURL(ClassLoader loader,
String resource)
Returns the URL of the resource on the classpath |
static URL |
getResourceURL(String resource)
Returns the URL of the resource on the classpath |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public ResourceUtils()
方法详细信息 |
---|
public static URL getResourceURL(String resource) throws IOException
resource
- The resource to find
IOException
- If the resource cannot be found or readpublic static URL getResourceURL(ClassLoader loader, String resource) throws IOException
loader
- The classloader used to load the resourceresource
- The resource to find
IOException
- If the resource cannot be found or readpublic static InputStream getResourceAsStream(String resource) throws IOException
resource
- The resource to find
IOException
- If the resource cannot be found or readpublic static InputStream getResourceAsStream(ClassLoader loader, String resource) throws IOException
loader
- The classloader used to load the resourceresource
- The resource to find
IOException
- If the resource cannot be found or readpublic static Properties getResourceAsProperties(String resource) throws IOException
resource
- The resource to find
IOException
- If the resource cannot be found or readpublic static Properties getResourceAsProperties(ClassLoader loader, String resource) throws IOException
loader
- The classloader used to load the resourceresource
- The resource to find
IOException
- If the resource cannot be found or readpublic static InputStreamReader getResourceAsReader(String resource) throws IOException
resource
- The resource to find
IOException
- If the resource cannot be found or readpublic static Reader getResourceAsReader(ClassLoader loader, String resource) throws IOException
loader
- The classloader used to load the resourceresource
- The resource to find
IOException
- If the resource cannot be found or readpublic static File getResourceAsFile(String resource) throws IOException
resource
- The resource to find
IOException
- If the resource cannot be found or readpublic static File getResourceAsFile(ClassLoader loader, String resource) throws IOException
loader
- The classloader used to load the resourceresource
- The resource to find
IOException
- If the resource cannot be found or read
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |