Java org.apache.shiro.io ResourceUtils fields, constructors, methods, implement or subclass

Example usage for Java org.apache.shiro.io ResourceUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.shiro.io ResourceUtils.

The text is from its open source code.

Field

StringCLASSPATH_PREFIX
Resource path prefix that specifies to load from a classpath location, value is classpath:
StringFILE_PREFIX
Resource path prefix that specifies to load from a file location, value is file:

Method

InputStreamgetInputStreamForPath(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 ).
booleanhasResourcePrefix(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.
booleanresourceExists(String resourcePath)
Returns true if the resource at the specified path exists, false otherwise.