public class ClasspathUtils extends Object
Constructor and Description |
---|
ClasspathUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canRead(File file)
Return true if a file exists and can be read.
|
static URL |
getClasspathResourceURL(File classpathElt,
String relativePath)
Can be used to get the URL of a classpath resource whose classpath element and relative path has been passed
into a MatchProcessor.
|
public static URL getClasspathResourceURL(File classpathElt, String relativePath)
classpathElt
- The classpath element (a directory or jarfile), as a File object.relativePath
- The relative path within the classpath element, with '/' as the path delimiter character, and
without an initial or final delimiter character.public static boolean canRead(File file)
Copyright © 2018. All rights reserved.