Class MemoryFile
- java.lang.Object
-
- org.drools.compiler.compiler.io.memory.MemoryFile
-
- All Implemented Interfaces:
Serializable,File,FileSystemItem
public class MemoryFile extends Object implements File, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MemoryFile(MemoryFileSystem mfs, String name, Folder folder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate(InputStream is)booleanequals(Object obj)booleanexists()InputStreamgetContents()FoldergetFolder()StringgetName()org.kie.memorycompiler.resources.KiePathgetPath()inthashCode()voidsetContents(InputStream is)StringtoString()
-
-
-
Constructor Detail
-
MemoryFile
public MemoryFile(MemoryFileSystem mfs, String name, Folder folder)
-
-
Method Detail
-
getContents
public InputStream getContents() throws IOException
- Specified by:
getContentsin interfaceFile- Throws:
IOException
-
getPath
public org.kie.memorycompiler.resources.KiePath getPath()
- Specified by:
getPathin interfaceFile- Specified by:
getPathin interfaceFileSystemItem
-
getFolder
public Folder getFolder()
-
setContents
public void setContents(InputStream is) throws IOException
- Specified by:
setContentsin interfaceFile- Throws:
IOException
-
create
public void create(InputStream is) throws IOException
- Specified by:
createin interfaceFile- Throws:
IOException
-
-