public class ByteArrayResourceAccessor extends Object implements liquibase.resource.ResourceAccessor
ResourceAccessor
which can be used to load the Liquibase XML changelog from a byte array.Modifier and Type | Field and Description |
---|---|
protected byte[] |
bytes |
protected liquibase.resource.ResourceAccessor |
delegatingResourceAccessor
The delegating accessor that would be used for all resources, except the one with the defined
path . |
protected String |
path |
Constructor and Description |
---|
ByteArrayResourceAccessor(String path,
byte[] bytes) |
ByteArrayResourceAccessor(String path,
byte[] bytes,
liquibase.resource.ResourceAccessor delegatingResourceAccessor) |
Modifier and Type | Method and Description |
---|---|
Set<InputStream> |
getResourcesAsStream(String path) |
Set<String> |
list(String relativeTo,
String path,
boolean includeFiles,
boolean includeDirectories,
boolean recursive) |
ClassLoader |
toClassLoader() |
protected final String path
protected final byte[] bytes
protected final liquibase.resource.ResourceAccessor delegatingResourceAccessor
path
.public ByteArrayResourceAccessor(String path, byte[] bytes)
public ByteArrayResourceAccessor(String path, byte[] bytes, liquibase.resource.ResourceAccessor delegatingResourceAccessor)
public Set<InputStream> getResourcesAsStream(String path) throws IOException
getResourcesAsStream
in interface liquibase.resource.ResourceAccessor
IOException
public Set<String> list(String relativeTo, String path, boolean includeFiles, boolean includeDirectories, boolean recursive) throws IOException
list
in interface liquibase.resource.ResourceAccessor
IOException
public ClassLoader toClassLoader()
toClassLoader
in interface liquibase.resource.ResourceAccessor
Copyright © 2019. All rights reserved.