Package org.kie.memorycompiler.resources
Class MemoryResourceReader
- java.lang.Object
-
- org.kie.memorycompiler.resources.MemoryResourceReader
-
- All Implemented Interfaces:
ResourceReader
public class MemoryResourceReader extends 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(String resourceName, byte[] pContent)byte[]getBytes(KiePath path)Collection<KiePath>getFilePaths()Collection<String>getModifiedResourcesSinceLastMark()booleanisAvailable(KiePath path)voidmark()voidremove(KiePath 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(KiePath path)
- Specified by:
isAvailablein interfaceResourceReader
-
add
public void add(String resourceName, byte[] pContent)
-
remove
public void remove(KiePath path)
-
mark
public void mark()
- Specified by:
markin interfaceResourceReader
-
getModifiedResourcesSinceLastMark
public Collection<String> getModifiedResourcesSinceLastMark()
- Specified by:
getModifiedResourcesSinceLastMarkin interfaceResourceReader
-
getBytes
public byte[] getBytes(KiePath path)
- Specified by:
getBytesin interfaceResourceReader
-
getFilePaths
public Collection<KiePath> getFilePaths()
- Specified by:
getFilePathsin interfaceResourceReader
-
-