@MustImplementEqualsAndHashcode public interface IReadableResourceProvider
| Modifier and Type | Method and Description |
|---|---|
default InputStream |
getInputStream(String sName)
Get the
InputStream specified by the given name for reading. |
IReadableResource |
getReadableResource(String sName)
Get the resource specified by the given name for reading.
|
boolean |
supportsReading(String sName)
Check if this resource provider can handle the resource with the passed
name.
|
boolean supportsReading(@Nullable String sName)
true.sName - The name to check. May be null.true if the name is not null and can be
handled by this provider, false otherwise.@Nonnull IReadableResource getReadableResource(@Nonnull String sName)
sName - The name of the resource to resolve.null.@Nullable default InputStream getInputStream(@Nonnull String sName)
InputStream specified by the given name for reading. This
method may be called without prior call to
supportsReading(String).sName - The name of the resource to resolve.InputStream. May be null if the underlying
resource does not exist or if supportsReading(String)
returns false.Copyright © 2014–2022 Philip Helger. All rights reserved.