public class PathResource extends AbstractResource
| Constructor and Description |
|---|
PathResource(String logicalPath,
Path path) |
| 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 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 exists()
public Resource resolve(String other)
Resourcepublic Resource resolveSibling(String other)
Resourcepublic boolean isWritable()
ResourceisWritable in interface ResourceisWritable in class AbstractResourcepublic 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.