The methods of this class do not allow null inputs.
| Access | Constructor and Description |
|---|---|
| public | ClassPathUtils()
Deprecated
TODO Make private in 4.0.
|
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: a package name.the source path. path)Converts a package name to a Java path ('/'). |
| public static String | Returns: a package name.the source path. path)Converts a Java path ('/') to a package name. |
| public static String | Returns: the fully qualified name of the resource with nameresourceName.The context for constructing the name. context, final String the resource name to construct the fully qualified name for. resourceName)Returns the fully qualified name for the resource with name |
| public static String | Returns: the fully qualified name of the resource with nameresourceName.The context for constructing the name. context, final String the resource name to construct the fully qualified name for. resourceName)Returns the fully qualified name for the resource with name |
| public static String | Returns: the fully qualified path of the resource with nameresourceName.The context for constructing the path. context, final String the resource name to construct the fully qualified path for. resourceName)Returns the fully qualified path for the resource with name |
| public static String | Returns: the fully qualified path of the resource with nameresourceName.The context for constructing the path. context, final String the resource name to construct the fully qualified path for. resourceName)Returns the fully qualified path for the resource with name |
| ClassPathUtils | back to summary |
|---|---|
| public ClassPathUtils()
Deprecated TODO Make private in 4.0.
This constructor is public to permit tools that require a JavaBean instance to operate.
| |
| packageToPath | back to summary |
|---|---|
| public static String packageToPath(final String path) Converts a package name to a Java path ('/').
| |
| pathToPackage | back to summary |
|---|---|
| public static String pathToPackage(final String path) Converts a Java path ('/') to a package name.
| |
| toFullyQualifiedName | back to summary |
|---|---|
| public static String toFullyQualifiedName(final Class<?> context, final String resourceName) Returns the fully qualified name for the resource with name Note that this method does not check whether the resource actually exists. It only constructs the name. Null inputs are not allowed. ClassPathUtils.toFullyQualifiedName(StringUtils.class, "StringUtils.properties") = "org.apache.commons.lang3.StringUtils.properties"
| |
| toFullyQualifiedName | back to summary |
|---|---|
| public static String toFullyQualifiedName(final Package context, final String resourceName) Returns the fully qualified name for the resource with name Note that this method does not check whether the resource actually exists. It only constructs the name. Null inputs are not allowed. ClassPathUtils.toFullyQualifiedName(StringUtils.class.getPackage(), "StringUtils.properties") = "org.apache.commons.lang3.StringUtils.properties"
| |
| toFullyQualifiedPath | back to summary |
|---|---|
| public static String toFullyQualifiedPath(final Class<?> context, final String resourceName) Returns the fully qualified path for the resource with name Note that this method does not check whether the resource actually exists. It only constructs the path. Null inputs are not allowed. ClassPathUtils.toFullyQualifiedPath(StringUtils.class, "StringUtils.properties") = "org/apache/commons/lang3/StringUtils.properties"
| |
| toFullyQualifiedPath | back to summary |
|---|---|
| public static String toFullyQualifiedPath(final Package context, final String resourceName) Returns the fully qualified path for the resource with name Note that this method does not check whether the resource actually exists. It only constructs the path. Null inputs are not allowed. ClassPathUtils.toFullyQualifiedPath(StringUtils.class.getPackage(), "StringUtils.properties") = "org/apache/commons/lang3/StringUtils.properties"
| |