@MustImplementEqualsAndHashcode public interface IWritableResourceProvider extends IReadableResourceProvider
| Modifier and Type | Method and Description |
|---|---|
default OutputStream |
getOutputStream(String sName,
EAppend eAppend)
Get the
OutputStream specified by the given name for reading. |
IWritableResource |
getWritableResource(String sName)
Get the resource specified by the given name for writing.
|
boolean |
supportsWriting(String sName)
Check if this resource provider can handle the resource with the passed
name.
|
getInputStream, getReadableResource, supportsReadingboolean supportsWriting(@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 IWritableResource getWritableResource(@Nonnull String sName)
sName - The name of the resource to resolve.null.@Nullable default OutputStream getOutputStream(@Nonnull String sName, @Nonnull EAppend eAppend)
OutputStream specified by the given name for reading. This
method may be called without prior call to
supportsWriting(String).sName - The name of the resource to resolve.eAppend - Appending mode. May not be null.OutputStream. May be null if the
underlying resource does not exist and cannot be created or if
supportsWriting(String) returns false.Copyright © 2014–2022 Philip Helger. All rights reserved.