@Nonnull
 public static ResourceStreamSource create(@Nonnull final URI aURI) {
   return create(URLUtils.getAsURL(aURI));
 }
Beispiel #2
0
 /**
  * Check if the passed resource name is an explicit URL resource.
  *
  * @param sName The name to check. May be <code>null</code>.
  * @return <code>true</code> if the passed name is an explicit URL resource.
  */
 public static boolean isExplicitURLResource(@Nullable final String sName) {
   return URLUtils.getAsURL(sName) != null;
 }