Package org.kie.memorycompiler.resources
Class MemoryResourceReader
- java.lang.Object
-
- org.kie.memorycompiler.resources.MemoryResourceReader
-
- All Implemented Interfaces:
ResourceReader
public class MemoryResourceReader extends java.lang.Object implements ResourceReader
A memory based reader to compile from memory
-
-
Constructor Summary
Constructors Constructor Description MemoryResourceReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(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()booleanisAvailable(org.drools.util.PortablePath path)voidmark()voidremove(org.drools.util.PortablePath path)-
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
-
-
-
-
Method Detail
-
isAvailable
public boolean isAvailable(org.drools.util.PortablePath path)
- Specified by:
isAvailablein interfaceResourceReader
-
add
public void add(java.lang.String resourceName, byte[] pContent)
-
remove
public void remove(org.drools.util.PortablePath path)
-
mark
public void mark()
- Specified by:
markin interfaceResourceReader
-
getModifiedResourcesSinceLastMark
public java.util.Collection<java.lang.String> getModifiedResourcesSinceLastMark()
- Specified by:
getModifiedResourcesSinceLastMarkin interfaceResourceReader
-
getBytes
public byte[] getBytes(org.drools.util.PortablePath path)
- Specified by:
getBytesin interfaceResourceReader
-
getFilePaths
public java.util.Collection<org.drools.util.PortablePath> getFilePaths()
- Specified by:
getFilePathsin interfaceResourceReader
-
-