org.springframework.osgi.io
Class OsgiResourceUtils
java.lang.Object
org.springframework.osgi.io.OsgiResourceUtils
public abstract class OsgiResourceUtils
- extends Object
Utility class used for IO resources.
- Author:
- Costin Leau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_PREFIX
public static final String EMPTY_PREFIX
- See Also:
- Constant Field Values
PREFIX_DELIMITER
public static final String PREFIX_DELIMITER
- See Also:
- Constant Field Values
FOLDER_DELIMITER
public static final String FOLDER_DELIMITER
- See Also:
- Constant Field Values
PREFIX_TYPE_UNKNOWN
public static final int PREFIX_TYPE_UNKNOWN
- See Also:
- Constant Field Values
PREFIX_TYPE_NOT_SPECIFIED
public static final int PREFIX_TYPE_NOT_SPECIFIED
- See Also:
- Constant Field Values
PREFIX_TYPE_BUNDLE_SPACE
public static final int PREFIX_TYPE_BUNDLE_SPACE
- See Also:
- Constant Field Values
PREFIX_TYPE_CLASS_SPACE
public static final int PREFIX_TYPE_CLASS_SPACE
- See Also:
- Constant Field Values
PREFIX_TYPE_BUNDLE_JAR
public static final int PREFIX_TYPE_BUNDLE_JAR
- See Also:
- Constant Field Values
OsgiResourceUtils
public OsgiResourceUtils()
getPrefix
public static String getPrefix(String path)
- Return the path prefix if there is any or
EMPTY_PREFIX
otherwise.
- Parameters:
path
-
- Returns:
getSearchType
public static int getSearchType(String path)
- Return the search type to be used for the give string based on the
prefix.
- Parameters:
path
-
- Returns:
stripPrefix
public static String stripPrefix(String path)
convertURLArraytoResourceArray
public static Resource[] convertURLArraytoResourceArray(URL[] urls)
convertURLEnumerationToResourceArray
public static Resource[] convertURLEnumerationToResourceArray(Enumeration enm)
Copyright © 2006-2007 Spring Framework. All Rights Reserved.