org.drools.compiler.compiler.io.memory
Class MemoryFile
java.lang.Object
org.drools.compiler.compiler.io.memory.MemoryFile
- All Implemented Interfaces:
- File, Resource
public class MemoryFile
- extends Object
- implements File
MemoryFile
public MemoryFile(MemoryFileSystem mfs,
String name,
Folder folder)
getName
public String getName()
- Specified by:
getName in interface File
getContents
public InputStream getContents()
throws IOException
- Specified by:
getContents in interface File
- Throws:
IOException
getPath
public Path getPath()
- Specified by:
getPath in interface File- Specified by:
getPath in interface Resource
getRelativePath
public Path getRelativePath()
getFolder
public Folder getFolder()
exists
public boolean exists()
- Specified by:
exists in interface File
setContents
public void setContents(InputStream is)
throws IOException
- Specified by:
setContents in interface File
- Throws:
IOException
create
public void create(InputStream is)
throws IOException
- Specified by:
create in interface File
- Throws:
IOException
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.