Top Fields Constructors Methods
liquibase.resource

public Class ZipResourceAccessor

extends AbstractPathResourceAccessor
Class Inheritance
Imports
liquibase.Scope, java.io.File, .FileNotFoundException, java.net.URI, java.nio.file.*, java.util.Collections, .List

Field Summary

Modifier and TypeField and Description
private FileSystem

Constructor Summary

AccessConstructor and Description
public
ZipResourceAccessor(File file)

Creates a FileSystemResourceAccessor with the given directories/files as the roots.

public
protected
ZipResourceAccessor(Path file, String[] embeddedPaths)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

protected Resource
public List<String>
describeLocations()

Overrides liquibase.resource.AbstractPathResourceAccessor.describeLocations.

Implements liquibase.resource.ResourceAccessor.describeLocations.

Returns a description of the places this classloader will look for paths.

protected Path
public String
toString()

Overrides liquibase.resource.AbstractPathResourceAccessor.toString.

Returns a string representation of the object.

Inherited from liquibase.resource.AbstractPathResourceAccessor:
getAllsearchsearch

Field Detail

fileSystemback to summary
private FileSystem fileSystem

Constructor Detail

ZipResourceAccessorback to summary
public ZipResourceAccessor(File file) throws FileNotFoundException

Creates a FileSystemResourceAccessor with the given directories/files as the roots.

ZipResourceAccessorback to summary
public ZipResourceAccessor(Path file) throws FileNotFoundException
ZipResourceAccessorback to summary
protected ZipResourceAccessor(Path file, String[] embeddedPaths) throws FileNotFoundException

Method Detail

closeback to summary
public void close() throws Exception

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
Exceptions
Exception:
if this resource cannot be closed
createResourceback to summary
protected Resource createResource(Path file, String pathToAdd)

Implements abstract liquibase.resource.AbstractPathResourceAccessor.createResource.

Annotations
@Override
describeLocationsback to summary
public List<String> describeLocations()

Overrides liquibase.resource.AbstractPathResourceAccessor.describeLocations.

Implements liquibase.resource.ResourceAccessor.describeLocations.

Doc from liquibase.resource.ResourceAccessor.describeLocations.

Returns a description of the places this classloader will look for paths. Used in error messages and other troubleshooting cases.

Annotations
@Override
getRootPathback to summary
protected Path getRootPath()

Implements abstract liquibase.resource.AbstractPathResourceAccessor.getRootPath.

Annotations
@Override
toStringback to summary
public String toString()

Overrides liquibase.resource.AbstractPathResourceAccessor.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override