Example usage for Java org.apache.shiro.io ResourceUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
String | CLASSPATH_PREFIX Resource path prefix that specifies to load from a classpath location, value is classpath: |
String | FILE_PREFIX Resource path prefix that specifies to load from a file location, value is file: |
InputStream | getInputStreamForPath(String resourcePath) Returns the InputStream for the resource represented by the specified path, supporting scheme prefixes that direct how to acquire the input stream ( #CLASSPATH_PREFIX CLASSPATH_PREFIX , #URL_PREFIX URL_PREFIX , or #FILE_PREFIX FILE_PREFIX ). |
boolean | hasResourcePrefix(String resourcePath) Returns true if the resource path is not null and starts with one of the recognized resource prefixes ( #CLASSPATH_PREFIX CLASSPATH_PREFIX , #URL_PREFIX URL_PREFIX , or #FILE_PREFIX FILE_PREFIX ), false otherwise. |
boolean | resourceExists(String resourcePath) Returns true if the resource at the specified path exists, false otherwise. |