public static class ResourceAccessor.NotFoundResource extends AbstractResource
| Constructor and Description |
|---|
NotFoundResource(String path,
ResourceAccessor resourceAccessor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists() |
boolean |
isWritable()
Return true if the resource can be written to
|
InputStream |
openInputStream()
Opens an input stream to read from this resource.
|
OutputStream |
openOutputStream(OpenOptions openOptions)
Opens an output stream given the passed
OpenOptions. |
Resource |
resolve(String other)
Resolve the given path against this resource.
|
Resource |
resolveSibling(String other)
Resolves the given path against this resource's parent path.
|
equals, getPath, getUri, hashCode, resolvePath, resolveSiblingPath, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitopenOutputStreampublic NotFoundResource(String path, ResourceAccessor resourceAccessor)
public InputStream openInputStream() throws IOException
ResourceIOException - if there is an error reading from the resource, including if the resource does not exist or cannot be read.public boolean isWritable()
ResourceisWritable in interface ResourceisWritable in class AbstractResourcepublic boolean exists()
public Resource resolve(String other)
Resourcepublic Resource resolveSibling(String other)
Resourcepublic OutputStream openOutputStream(OpenOptions openOptions) throws IOException
ResourceOpenOptions.
Cannot pass a null OpenOptions valueopenOutputStream in interface ResourceopenOutputStream in class AbstractResourceIOExceptionCopyright © 2023 Liquibase.org. All rights reserved.