Class ByteArrayResourceAccessor
java.lang.Object
com.flowable.dataobject.engine.impl.repository.ByteArrayResourceAccessor
- All Implemented Interfaces:
AutoCloseable
,liquibase.resource.ResourceAccessor
public class ByteArrayResourceAccessor
extends Object
implements liquibase.resource.ResourceAccessor
Special
ResourceAccessor
which can be used to load the Liquibase XML changelog from a byte array.- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested classes/interfaces inherited from interface liquibase.resource.ResourceAccessor
liquibase.resource.ResourceAccessor.NotFoundResource
-
Field Summary
Modifier and TypeFieldDescriptionprotected final byte[]
protected final liquibase.resource.ResourceAccessor
The delegating accessor that would be used for all resources, except the one with the definedpath
.protected final String
-
Constructor Summary
ConstructorDescriptionByteArrayResourceAccessor
(String path, byte[] bytes) ByteArrayResourceAccessor
(String path, byte[] bytes, liquibase.resource.ResourceAccessor delegatingResourceAccessor) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface liquibase.resource.ResourceAccessor
get, getExisting, list, openStream, openStreams
-
Field Details
-
path
-
bytes
protected final byte[] bytes -
delegatingResourceAccessor
protected final liquibase.resource.ResourceAccessor delegatingResourceAccessorThe delegating accessor that would be used for all resources, except the one with the definedpath
.
-
-
Constructor Details
-
ByteArrayResourceAccessor
-
ByteArrayResourceAccessor
public ByteArrayResourceAccessor(String path, byte[] bytes, liquibase.resource.ResourceAccessor delegatingResourceAccessor)
-
-
Method Details
-
describeLocations
- Specified by:
describeLocations
in interfaceliquibase.resource.ResourceAccessor
-
search
- Specified by:
search
in interfaceliquibase.resource.ResourceAccessor
- Throws:
IOException
-
getAll
- Specified by:
getAll
in interfaceliquibase.resource.ResourceAccessor
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-