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

    Fields
    Modifier and Type
    Field
    Description
    protected final byte[]
     
    protected final liquibase.resource.ResourceAccessor
    The delegating accessor that would be used for all resources, except the one with the defined path.
    protected final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ByteArrayResourceAccessor(String path, byte[] bytes)
     
    ByteArrayResourceAccessor(String path, byte[] bytes, liquibase.resource.ResourceAccessor delegatingResourceAccessor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    List<liquibase.resource.Resource>
    getAll(String path)
     
    List<liquibase.resource.Resource>
    search(String path, boolean recursive)
     

    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

      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 defined path.
  • Constructor Details

    • ByteArrayResourceAccessor

      public ByteArrayResourceAccessor(String path, byte[] bytes)
    • ByteArrayResourceAccessor

      public ByteArrayResourceAccessor(String path, byte[] bytes, liquibase.resource.ResourceAccessor delegatingResourceAccessor)
  • Method Details

    • describeLocations

      public List<String> describeLocations()
      Specified by:
      describeLocations in interface liquibase.resource.ResourceAccessor
    • search

      public List<liquibase.resource.Resource> search(String path, boolean recursive) throws IOException
      Specified by:
      search in interface liquibase.resource.ResourceAccessor
      Throws:
      IOException
    • getAll

      public List<liquibase.resource.Resource> getAll(String path) throws IOException
      Specified by:
      getAll in interface liquibase.resource.ResourceAccessor
      Throws:
      IOException
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception