org.eclipse.gemini.blueprint.io.internal
Class OsgiResourceUtils
java.lang.Object
org.eclipse.gemini.blueprint.io.internal.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_JAR
public static final int PREFIX_TYPE_BUNDLE_JAR
- 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_CLASS_ALL_SPACE
public static final int PREFIX_TYPE_CLASS_ALL_SPACE
- 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:
isClassPathType
public static boolean isClassPathType(int type)
stripPrefix
public static String stripPrefix(String path)
convertURLArraytoResourceArray
public static org.springframework.core.io.Resource[] convertURLArraytoResourceArray(URL[] urls)
convertURLEnumerationToResourceArray
public static org.springframework.core.io.Resource[] convertURLEnumerationToResourceArray(Enumeration<URL> enm)
findUpperFolder
public static String findUpperFolder(String path)
- Similar to /path/path1/ -> /path/, /path/file -> /path/
- Returns:
Copyright © 2006-2013. All Rights Reserved.