Java Code Examples for com.helger.commons.io.resource.URLResource#isExplicitURLResource()
The following examples show how to use
com.helger.commons.io.resource.URLResource#isExplicitURLResource() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FileSystemResourceProvider.java From ph-commons with Apache License 2.0 | 5 votes |
public boolean supportsReading (@Nullable final String sName) { if (StringHelper.hasNoText (sName)) return false; if (ClassPathResource.isExplicitClassPathResource (sName)) return false; if (URLResource.isExplicitURLResource (sName)) return false; if (isCanReadRelativePaths ()) return true; // Must be an absolute path (for backwards compatibility) return _getFile (sName).isAbsolute (); }
Example 2
Source File: FileSystemResourceProvider.java From ph-commons with Apache License 2.0 | 5 votes |
public boolean supportsWriting (@Nullable final String sName) { if (StringHelper.hasNoText (sName)) return false; if (ClassPathResource.isExplicitClassPathResource (sName)) return false; if (URLResource.isExplicitURLResource (sName)) return false; return true; }
Example 3
Source File: URLResourceProvider.java From ph-commons with Apache License 2.0 | 4 votes |
public boolean supportsReading (@Nullable final String sName) { return URLResource.isExplicitURLResource (sName); }