Class DiskResourceReader
- java.lang.Object
-
- org.drools.compiler.kie.builder.impl.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()
-
-
-
Method Detail
-
isAvailable
public boolean isAvailable(org.drools.util.PortablePath resourcePath)
- Specified by:
isAvailable
in interfaceorg.kie.memorycompiler.resources.ResourceReader
-
getBytes
public byte[] getBytes(org.drools.util.PortablePath resourcePath)
- Specified by:
getBytes
in interfaceorg.kie.memorycompiler.resources.ResourceReader
-
getFilePaths
public java.util.Collection<org.drools.util.PortablePath> getFilePaths()
- Specified by:
getFilePaths
in interfaceorg.kie.memorycompiler.resources.ResourceReader
-
mark
public void mark()
- Specified by:
mark
in interfaceorg.kie.memorycompiler.resources.ResourceReader
-
getModifiedResourcesSinceLastMark
public java.util.Collection<java.lang.String> getModifiedResourcesSinceLastMark()
- Specified by:
getModifiedResourcesSinceLastMark
in interfaceorg.kie.memorycompiler.resources.ResourceReader
-
-