Class MemoryFile
- java.lang.Object
-
- org.drools.compiler.compiler.io.memory.MemoryFile
-
- All Implemented Interfaces:
java.io.Serializable
,File
,FileSystemItem
public class MemoryFile extends java.lang.Object implements File, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MemoryFile(MemoryFileSystem mfs, java.lang.String name, Folder folder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(java.io.InputStream is)
boolean
equals(java.lang.Object obj)
boolean
exists()
java.io.InputStream
getContents()
Folder
getFolder()
java.lang.String
getName()
org.drools.util.PortablePath
getPath()
int
hashCode()
void
setContents(java.io.InputStream is)
java.lang.String
toString()
-
-
-
Constructor Detail
-
MemoryFile
public MemoryFile(MemoryFileSystem mfs, java.lang.String name, Folder folder)
-
-
Method Detail
-
getContents
public java.io.InputStream getContents() throws java.io.IOException
- Specified by:
getContents
in interfaceFile
- Throws:
java.io.IOException
-
getPath
public org.drools.util.PortablePath getPath()
- Specified by:
getPath
in interfaceFile
- Specified by:
getPath
in interfaceFileSystemItem
-
getFolder
public Folder getFolder()
-
setContents
public void setContents(java.io.InputStream is) throws java.io.IOException
- Specified by:
setContents
in interfaceFile
- Throws:
java.io.IOException
-
create
public void create(java.io.InputStream is) throws java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-