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 voidcreate(java.io.InputStream is)booleanequals(java.lang.Object obj)booleanexists()java.io.InputStreamgetContents()FoldergetFolder()java.lang.StringgetName()org.drools.util.PortablePathgetPath()inthashCode()voidsetContents(java.io.InputStream is)java.lang.StringtoString()
-
-
-
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:
getContentsin interfaceFile- Throws:
java.io.IOException
-
getPath
public org.drools.util.PortablePath getPath()
- Specified by:
getPathin interfaceFile- Specified by:
getPathin interfaceFileSystemItem
-
getFolder
public Folder getFolder()
-
setContents
public void setContents(java.io.InputStream is) throws java.io.IOException- Specified by:
setContentsin interfaceFile- Throws:
java.io.IOException
-
create
public void create(java.io.InputStream is) throws java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-