public interface PathHandler extends Plugin
ResourceAccessors and InputStreams.PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED| Modifier and Type | Method and Description |
|---|---|
OutputStream |
createResource(String path)
Creates a new resource at the specified path and returns an OutputStream for writing to it.
|
int |
getPriority(String root)
Priority of this parser for the given path.
|
Resource |
getResource(String path)
Parse the given "absolute" path and return a
Resource for it if it exists. |
ResourceAccessor |
getResourceAccessor(String root)
Parse the given path and return a
ResourceAccessor for it. |
int getPriority(String root)
ResourceAccessor getResourceAccessor(String root) throws IOException, FileNotFoundException
ResourceAccessor for it.IOException - if the path is invalidFileNotFoundException - if the path is valid but does not existResource getResource(String path) throws IOException
Resource for it if it exists.Resource.exists() to determine if it exists or notIOException - if the path is invalidOutputStream createResource(String path) throws IOException
FileAlreadyExistsException - if the file already existsIOException - if the path cannot be written toCopyright © 2022 Liquibase.org. All rights reserved.