org.apache.ibatis.io
Class Resources
java.lang.Object
org.apache.ibatis.io.Resources
public class Resources
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getDefaultClassLoader
public static ClassLoader getDefaultClassLoader()
setDefaultClassLoader
public static void setDefaultClassLoader(ClassLoader defaultClassLoader)
getResourceURL
public static URL getResourceURL(String resource)
throws IOException
- Throws:
IOException
getResourceURL
public static URL getResourceURL(ClassLoader loader,
String resource)
throws IOException
- Throws:
IOException
getResourceAsStream
public static InputStream getResourceAsStream(String resource)
throws IOException
- Throws:
IOException
getResourceAsStream
public static InputStream getResourceAsStream(ClassLoader loader,
String resource)
throws IOException
- Throws:
IOException
getResourceAsProperties
public static Properties getResourceAsProperties(String resource)
throws IOException
- Throws:
IOException
getResourceAsProperties
public static Properties getResourceAsProperties(ClassLoader loader,
String resource)
throws IOException
- Throws:
IOException
getResourceAsReader
public static Reader getResourceAsReader(String resource)
throws IOException
- Throws:
IOException
getResourceAsReader
public static Reader getResourceAsReader(ClassLoader loader,
String resource)
throws IOException
- Throws:
IOException
getResourceAsFile
public static File getResourceAsFile(String resource)
throws IOException
- Throws:
IOException
getResourceAsFile
public static File getResourceAsFile(ClassLoader loader,
String resource)
throws IOException
- Throws:
IOException
getUrlAsStream
public static InputStream getUrlAsStream(String urlString)
throws IOException
- Throws:
IOException
getUrlAsReader
public static Reader getUrlAsReader(String urlString)
throws IOException
- Throws:
IOException
getUrlAsProperties
public static Properties getUrlAsProperties(String urlString)
throws IOException
- Throws:
IOException
classForName
public static Class<?> classForName(String className)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getCharset
public static Charset getCharset()
setCharset
public static void setCharset(Charset charset)
Copyright © 2010-2012 MyBatis.org. All Rights Reserved.