Drools :: Compiler 6.0.0.CR5

org.drools.compiler.compiler.io.memory
Class MemoryFile

java.lang.Object
  extended by org.drools.compiler.compiler.io.memory.MemoryFile
All Implemented Interfaces:
File, Resource

public class MemoryFile
extends Object
implements File


Constructor Summary
MemoryFile(MemoryFileSystem mfs, String name, Folder folder)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemoryFile

public MemoryFile(MemoryFileSystem mfs,
                  String name,
                  Folder folder)
Method Detail

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

Drools :: Compiler 6.0.0.CR5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.