@Immutable public final class ClassPathResourceProvider extends Object implements IReadableResourceProvider
| Constructor and Description |
|---|
ClassPathResourceProvider()
Constructor without prefix.
|
ClassPathResourceProvider(String sPrefix)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getPrefix() |
IReadableResource |
getReadableResource(String sName)
Get the resource specified by the given name for reading.
|
int |
hashCode() |
boolean |
supportsReading(String sName)
Check if this resource provider can handle the resource with the passed
name.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetInputStreampublic ClassPathResourceProvider()
@Nullable public String getPrefix()
null.public boolean supportsReading(@Nullable String sName)
IReadableResourceProvidertrue.supportsReading in interface IReadableResourceProvidersName - The name to check. May be null.true if the name is not null and can be
handled by this provider, false otherwise.@Nonnull public IReadableResource getReadableResource(@Nonnull String sName)
IReadableResourceProvidergetReadableResource in interface IReadableResourceProvidersName - The name of the resource to resolve.null.Copyright © 2014–2022 Philip Helger. All rights reserved.