Class DiskResourceReader

  • All Implemented Interfaces:
    org.kie.memorycompiler.resources.ResourceReader

    public class DiskResourceReader
    extends java.lang.Object
    implements org.kie.memorycompiler.resources.ResourceReader
    • Constructor Summary

      Constructors 
      Constructor Description
      DiskResourceReader​(java.io.File root)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getBytes​(org.drools.util.PortablePath resourcePath)  
      java.util.Collection<org.drools.util.PortablePath> getFilePaths()  
      java.util.Collection<java.lang.String> getModifiedResourcesSinceLastMark()  
      boolean isAvailable​(org.drools.util.PortablePath resourcePath)  
      void mark()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.kie.memorycompiler.resources.ResourceReader

        getBytes, isAvailable
    • Constructor Detail

      • DiskResourceReader

        public DiskResourceReader​(java.io.File root)
    • Method Detail

      • isAvailable

        public boolean isAvailable​(org.drools.util.PortablePath resourcePath)
        Specified by:
        isAvailable in interface org.kie.memorycompiler.resources.ResourceReader
      • getBytes

        public byte[] getBytes​(org.drools.util.PortablePath resourcePath)
        Specified by:
        getBytes in interface org.kie.memorycompiler.resources.ResourceReader
      • getFilePaths

        public java.util.Collection<org.drools.util.PortablePath> getFilePaths()
        Specified by:
        getFilePaths in interface org.kie.memorycompiler.resources.ResourceReader
      • mark

        public void mark()
        Specified by:
        mark in interface org.kie.memorycompiler.resources.ResourceReader
      • getModifiedResourcesSinceLastMark

        public java.util.Collection<java.lang.String> getModifiedResourcesSinceLastMark()
        Specified by:
        getModifiedResourcesSinceLastMark in interface org.kie.memorycompiler.resources.ResourceReader