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 void
create(InputStream is)
boolean
equals(Object obj)
boolean
exists()
InputStream
getContents()
Folder
getFolder()
String
getName()
Path
getPath()
Path
getRelativePath()
int
hashCode()
void
setContents(InputStream is)
String
toString()
-
-
-
Constructor Detail
-
MemoryFile
public MemoryFile(MemoryFileSystem mfs, String name, Folder folder)
-
-
Method Detail
-
getContents
public InputStream getContents() throws IOException
- Specified by:
getContents
in interfaceFile
- Throws:
IOException
-
getPath
public Path getPath()
- Specified by:
getPath
in interfaceFile
- Specified by:
getPath
in interfaceFileSystemItem
-
getRelativePath
public Path getRelativePath()
-
getFolder
public Folder getFolder()
-
setContents
public void setContents(InputStream is) throws IOException
- Specified by:
setContents
in interfaceFile
- Throws:
IOException
-
create
public void create(InputStream is) throws IOException
- Specified by:
create
in interfaceFile
- Throws:
IOException
-
-