org.seasar.framework.util
クラス ResourceUtil
java.lang.Object
org.seasar.framework.util.ResourceUtil
- public final class ResourceUtil
- extends Object
クラス 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.