public class PathHandlerFactory extends AbstractPluginFactory<PathHandler>
PathHandlers.| Modifier and Type | Method and Description |
|---|---|
OutputStream |
createResource(String resourcePath)
Creates a new resource at the specified path and returns an OutputStream for writing to it.
|
protected Class<PathHandler> |
getPluginClass() |
protected int |
getPriority(PathHandler obj,
Object... args)
Returns the priority of the given object based on the passed args array.
|
Resource |
getResource(String resourcePath)
Return the resource for the given path.
|
ResourceAccessor |
getResourceAccessor(String root)
Creates a
ResourceAccessor for the given path. |
OutputStream |
openResourceOutputStream(String resourcePath,
boolean createIfNotExists)
Deprecated.
|
OutputStream |
openResourceOutputStream(String resourcePath,
OpenOptions openOptions)
Returns the outputStream from
getResource(String), using settings from the passed OpenOptions. |
findAllInstances, getPlugin, register, removeInstanceprotected Class<PathHandler> getPluginClass()
getPluginClass in class AbstractPluginFactory<PathHandler>protected int getPriority(PathHandler obj, Object... args)
AbstractPluginFactoryAbstractPluginFactory.getPlugin(Object...)getPriority in class AbstractPluginFactory<PathHandler>public ResourceAccessor getResourceAccessor(String root) throws IOException
ResourceAccessor for the given path.IOExceptionpublic OutputStream createResource(String resourcePath) throws IOException
FileAlreadyExistsException - if the file already existsIOException - if the path cannot be written topublic Resource getResource(String resourcePath) throws IOException
IOException - if the path cannot be understood or if there is a problem parsing the pathIOException - if the path exists as both a direct resourcePath and also in the resourceAccessor (if included). Unless GlobalConfiguration.DUPLICATE_FILE_MODE overrides that behavior.@Deprecated public OutputStream openResourceOutputStream(String resourcePath, boolean createIfNotExists) throws IOException
openResourceOutputStream(String, OpenOptions)getResource(String) if it exists, and the outputStream from createResource(String) if it does not.IOException - if there is an error opening the streampublic OutputStream openResourceOutputStream(String resourcePath, OpenOptions openOptions) throws IOException
getResource(String), using settings from the passed OpenOptions.OpenOptions.isCreateIfNeeded() is falseIOException - if there is an error opening the streamCopyright © 2023 Liquibase.org. All rights reserved.