Class ByteArrayResourceAccessor
- java.lang.Object
-
- com.flowable.dataobject.engine.impl.repository.ByteArrayResourceAccessor
-
- All Implemented Interfaces:
liquibase.resource.ResourceAccessor
public class ByteArrayResourceAccessor extends Object implements liquibase.resource.ResourceAccessor
SpecialResourceAccessor
which can be used to load the Liquibase XML changelog from a byte array.- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]
bytes
protected liquibase.resource.ResourceAccessor
delegatingResourceAccessor
The delegating accessor that would be used for all resources, except the one with the definedpath
.protected String
path
-
Constructor Summary
Constructors Constructor Description ByteArrayResourceAccessor(String path, byte[] bytes)
ByteArrayResourceAccessor(String path, byte[] bytes, liquibase.resource.ResourceAccessor delegatingResourceAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortedSet<String>
describeLocations()
SortedSet<String>
list(String relativeTo, String path, boolean includeFiles, boolean includeDirectories, boolean recursive)
InputStream
openStream(String relativeTo, String streamPath)
liquibase.resource.InputStreamList
openStreams(String relativeTo, String streamPath)
-
-
-
Field Detail
-
path
protected final String path
-
bytes
protected final byte[] bytes
-
delegatingResourceAccessor
protected final liquibase.resource.ResourceAccessor delegatingResourceAccessor
The delegating accessor that would be used for all resources, except the one with the definedpath
.
-
-
Method Detail
-
openStreams
public liquibase.resource.InputStreamList openStreams(String relativeTo, String streamPath) throws IOException
- Specified by:
openStreams
in interfaceliquibase.resource.ResourceAccessor
- Throws:
IOException
-
openStream
public InputStream openStream(String relativeTo, String streamPath) throws IOException
- Specified by:
openStream
in interfaceliquibase.resource.ResourceAccessor
- Throws:
IOException
-
describeLocations
public SortedSet<String> describeLocations()
- Specified by:
describeLocations
in interfaceliquibase.resource.ResourceAccessor
-
list
public SortedSet<String> list(String relativeTo, String path, boolean includeFiles, boolean includeDirectories, boolean recursive) throws IOException
- Specified by:
list
in interfaceliquibase.resource.ResourceAccessor
- Throws:
IOException
-
-