org.seasar.framework.util
クラス ResourceUtil

java.lang.Object
  拡張org.seasar.framework.util.ResourceUtil

public final class ResourceUtil
extends Object


メソッドの概要
static String convertPath(String path, Class clazz)
           
static File getBuildDir(Class clazz)
           
static File getBuildDir(String path)
           
static ClassLoader getClassLoader()
           
static String getExtension(String path)
           
static File getFile(URL url)
           
static String getFileName(URL url)
           
static Properties getProperties(String path)
           
static URL getResource(String path)
           
static URL getResource(String path, String extension)
           
static File getResourceAsFile(String path)
           
static File getResourceAsFile(String path, String extension)
           
static File getResourceAsFileNoException(Class clazz)
           
static File getResourceAsFileNoException(String path)
           
static InputStream getResourceAsStream(String path)
           
static InputStream getResourceAsStream(String path, String extension)
           
static InputStream getResourceAsStreamNoException(String path)
           
static InputStream getResourceAsStreamNoException(String path, String extension)
           
static URL getResourceNoException(String path)
           
static URL getResourceNoException(String path, String extension)
           
static String getResourcePath(Class clazz)
           
static String getResourcePath(String path, String extension)
           
static boolean isExist(String path)
           
static String removeExtension(String path)
           
static String toExternalForm(URL url)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

getResourcePath

public static String getResourcePath(String path,
                                     String extension)

getResourcePath

public static String getResourcePath(Class clazz)

getClassLoader

public static ClassLoader getClassLoader()

getResource

public static URL getResource(String path)

getResource

public static URL getResource(String path,
                              String extension)
                       throws ResourceNotFoundRuntimeException
例外:
ResourceNotFoundRuntimeException

getResourceNoException

public static URL getResourceNoException(String path)

getResourceNoException

public static URL getResourceNoException(String path,
                                         String extension)

getResourceAsStream

public static InputStream getResourceAsStream(String path)

getResourceAsStream

public static InputStream getResourceAsStream(String path,
                                              String extension)

getResourceAsStreamNoException

public static InputStream getResourceAsStreamNoException(String path)

getResourceAsStreamNoException

public static InputStream getResourceAsStreamNoException(String path,
                                                         String extension)

isExist

public static boolean isExist(String path)

getProperties

public static Properties getProperties(String path)

getExtension

public static String getExtension(String path)

removeExtension

public static String removeExtension(String path)

getBuildDir

public static File getBuildDir(Class clazz)

getBuildDir

public static File getBuildDir(String path)

toExternalForm

public static String toExternalForm(URL url)

getFileName

public static String getFileName(URL url)

getFile

public static File getFile(URL url)

getResourceAsFile

public static File getResourceAsFile(String path)

getResourceAsFile

public static File getResourceAsFile(String path,
                                     String extension)

getResourceAsFileNoException

public static File getResourceAsFileNoException(Class clazz)

getResourceAsFileNoException

public static File getResourceAsFileNoException(String path)

convertPath

public static String convertPath(String path,
                                 Class clazz)


Copyright © 2004-2007 The Seasar Foundation. All Rights Reserved.