org.apache.ibatis.io
Class Resources

java.lang.Object
  extended by org.apache.ibatis.io.Resources

public class Resources
extends Object


Method Summary
static Class<?> classForName(String className)
           
static Charset getCharset()
           
static ClassLoader getDefaultClassLoader()
           
static File getResourceAsFile(ClassLoader loader, String resource)
           
static File getResourceAsFile(String resource)
           
static Properties getResourceAsProperties(ClassLoader loader, String resource)
           
static Properties getResourceAsProperties(String resource)
           
static Reader getResourceAsReader(ClassLoader loader, String resource)
           
static Reader getResourceAsReader(String resource)
           
static InputStream getResourceAsStream(ClassLoader loader, String resource)
           
static InputStream getResourceAsStream(String resource)
           
static URL getResourceURL(ClassLoader loader, String resource)
           
static URL getResourceURL(String resource)
           
static Properties getUrlAsProperties(String urlString)
           
static Reader getUrlAsReader(String urlString)
           
static InputStream getUrlAsStream(String urlString)
           
static void setCharset(Charset charset)
           
static void setDefaultClassLoader(ClassLoader defaultClassLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.