Class URLResourceProvider
java.lang.Object
com.helger.commons.io.resourceprovider.URLResourceProvider
- All Implemented Interfaces:
IReadableResourceProvider
@Immutable
public final class URLResourceProvider
extends Object
implements IReadableResourceProvider
The URL resource provider.
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetReadableResource(String sURL) Get the resource specified by the given name for reading.inthashCode()booleansupportsReading(String sName) Check if this resource provider can handle the resource with the passed name.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.io.resourceprovider.IReadableResourceProvider
getInputStream
-
Constructor Details
-
URLResourceProvider
public URLResourceProvider()
-
-
Method Details
-
supportsReading
Description copied from interface:IReadableResourceProviderCheck if this resource provider can handle the resource with the passed name. If there is no real check on whether your resource provider can handle it, simply returntrue.- Specified by:
supportsReadingin interfaceIReadableResourceProvider- Parameters:
sName- The name to check. May benull.- Returns:
trueif the name is notnulland can be handled by this provider,falseotherwise.
-
getReadableResource
Description copied from interface:IReadableResourceProviderGet the resource specified by the given name for reading.- Specified by:
getReadableResourcein interfaceIReadableResourceProvider- Parameters:
sURL- The name of the resource to resolve.- Returns:
- The readable resource. Never
null.
-
equals
-
hashCode
public int hashCode() -
toString
-