org.springframework.osgi.io
Class OsgiResourceUtils

java.lang.Object
  extended by org.springframework.osgi.io.OsgiResourceUtils

public abstract class OsgiResourceUtils
extends Object

Utility class used for IO resources.

Author:
Costin Leau

Field Summary
static String EMPTY_PREFIX
           
static String FOLDER_DELIMITER
           
static String PREFIX_DELIMITER
           
static int PREFIX_TYPE_BUNDLE_JAR
           
static int PREFIX_TYPE_BUNDLE_SPACE
           
static int PREFIX_TYPE_CLASS_SPACE
           
static int PREFIX_TYPE_NOT_SPECIFIED
           
static int PREFIX_TYPE_UNKNOWN
           
 
Constructor Summary
OsgiResourceUtils()
           
 
Method Summary
static Resource[] convertURLArraytoResourceArray(URL[] urls)
           
static Resource[] convertURLEnumerationToResourceArray(Enumeration enm)
           
static String getPrefix(String path)
          Return the path prefix if there is any or EMPTY_PREFIX otherwise.
static int getSearchType(String path)
          Return the search type to be used for the give string based on the prefix.
static String stripPrefix(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

OsgiResourceUtils

public OsgiResourceUtils()
Method Detail

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.