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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
openOutputStream
public NotFoundResource(String path, ResourceAccessor resourceAccessor)
public InputStream openInputStream() throws IOException
Resource
IOException
- if there is an error reading from the resource, including if the resource does not exist or cannot be read.public boolean isWritable()
Resource
isWritable
in interface Resource
isWritable
in class AbstractResource
public boolean exists()
public Resource resolve(String other)
Resource
public Resource resolveSibling(String other)
Resource
public OutputStream openOutputStream(OpenOptions openOptions) throws IOException
Resource
OpenOptions
.
Cannot pass a null OpenOptions valueopenOutputStream
in interface Resource
openOutputStream
in class AbstractResource
IOException
Copyright © 2023 Liquibase.org. All rights reserved.