Class MemoryResourceReader

  • All Implemented Interfaces:
    ResourceReader

    public class MemoryResourceReader
    extends java.lang.Object
    implements ResourceReader
    A memory based reader to compile from memory
    • Method Summary

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MemoryResourceReader

        public MemoryResourceReader()
    • Method Detail

      • isAvailable

        public boolean isAvailable​(org.drools.util.PortablePath path)
        Specified by:
        isAvailable in interface ResourceReader
      • add

        public void add​(java.lang.String resourceName,
                        byte[] pContent)
      • remove

        public void remove​(org.drools.util.PortablePath path)
      • getBytes

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

        public java.util.Collection<org.drools.util.PortablePath> getFilePaths()
        Specified by:
        getFilePaths in interface ResourceReader