Package liquibase.resource
Class ZipResourceAccessor
- java.lang.Object
-
- liquibase.AbstractExtensibleObject
-
- liquibase.resource.AbstractResourceAccessor
-
- liquibase.resource.AbstractPathResourceAccessor
-
- liquibase.resource.ZipResourceAccessor
-
- All Implemented Interfaces:
AutoCloseable,Cloneable,ExtensibleObject,ResourceAccessor
public class ZipResourceAccessor extends AbstractPathResourceAccessor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface liquibase.resource.ResourceAccessor
ResourceAccessor.NotFoundResource, ResourceAccessor.SearchOptions
-
-
Constructor Summary
Constructors Constructor Description ZipResourceAccessor(File file)Creates a FileSystemResourceAccessor with the given directories/files as the roots.ZipResourceAccessor(Path file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected ResourcecreateResource(Path file, String pathToAdd)List<String>describeLocations()Returns a description of the places this classloader will look for paths.protected PathgetRootPath()StringtoString()-
Methods inherited from class liquibase.resource.AbstractPathResourceAccessor
getAll, search, search
-
Methods inherited from class liquibase.AbstractExtensibleObject
clone, describe, equals, get, get, get, getAttributes, getFieldValue, getObjectMetaData, getValuePath, has, hashCode, set
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface liquibase.resource.ResourceAccessor
get, getExisting, list, openStream, openStreams
-
-
-
-
Constructor Detail
-
ZipResourceAccessor
public ZipResourceAccessor(File file) throws FileNotFoundException
Creates a FileSystemResourceAccessor with the given directories/files as the roots.- Throws:
FileNotFoundException
-
ZipResourceAccessor
public ZipResourceAccessor(Path file) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-
Method Detail
-
getRootPath
protected Path getRootPath()
- Specified by:
getRootPathin classAbstractPathResourceAccessor
-
createResource
protected Resource createResource(Path file, String pathToAdd)
- Specified by:
createResourcein classAbstractPathResourceAccessor
-
describeLocations
public List<String> describeLocations()
Description copied from interface:ResourceAccessorReturns a description of the places this classloader will look for paths. Used in error messages and other troubleshooting cases.- Specified by:
describeLocationsin interfaceResourceAccessor- Overrides:
describeLocationsin classAbstractPathResourceAccessor
-
toString
public String toString()
- Overrides:
toStringin classAbstractPathResourceAccessor
-
-