org.apache.avalon.phoenix.components.util
Class ResourceUtil
java.lang.Object
|
+--org.apache.avalon.phoenix.components.util.ResourceUtil
- public class ResourceUtil
- extends java.lang.Object
A utility class for working with resources in default sar layout.
- Version:
- $Revision: 1.1 $ $Date: 2002/09/06 09:42:35 $
- Author:
- Peter Donald
Method Summary |
static java.lang.String |
expandSarURL(java.lang.String codeBase,
java.io.File baseDirectory,
java.io.File workDirectory)
Expand any URLs with sar: protocol so that
they accurately match the actual location |
static java.io.File |
getFileForResource(java.lang.String location,
java.io.File baseDirectory,
java.io.File workDirectory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceUtil
public ResourceUtil()
expandSarURL
public static java.lang.String expandSarURL(java.lang.String codeBase,
java.io.File baseDirectory,
java.io.File workDirectory)
throws ConfigurationException
- Expand any URLs with sar: protocol so that
they accurately match the actual location
- Parameters:
codeBase
- the input url
- Returns:
- the result url, modified to file url if it
is protocol "sar:"
- Throws:
ConfigurationException
- if invalidly specified URL
getFileForResource
public static java.io.File getFileForResource(java.lang.String location,
java.io.File baseDirectory,
java.io.File workDirectory)
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.