com.ochafik.lang.compiler
Class MemoryFileObject

java.lang.Object
  extended by com.ochafik.lang.compiler.MemoryFileObject
All Implemented Interfaces:
FileObject
Direct Known Subclasses:
MemoryJavaFile

public class MemoryFileObject
extends Object
implements FileObject


Constructor Summary
MemoryFileObject(String path, byte[] content)
           
MemoryFileObject(String path, String content)
           
 
Method Summary
 boolean delete()
           
 String getCharContent(boolean ignoreEncodingErrors)
           
 byte[] getContent()
           
 long getLastModified()
           
 String getName()
           
 String getPath()
           
 InputStream openInputStream()
           
 OutputStream openOutputStream()
           
 Reader openReader(boolean ignoreEncodingErrors)
           
 Writer openWriter()
           
 String toString()
           
 URI toUri()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemoryFileObject

public MemoryFileObject(String path,
                        String content)

MemoryFileObject

public MemoryFileObject(String path,
                        byte[] content)
Method Detail

getPath

public String getPath()

getContent

public byte[] getContent()

delete

public boolean delete()
Specified by:
delete in interface FileObject

getCharContent

public String getCharContent(boolean ignoreEncodingErrors)
Specified by:
getCharContent in interface FileObject

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface FileObject

getName

public String getName()
Specified by:
getName in interface FileObject

openInputStream

public InputStream openInputStream()
Specified by:
openInputStream in interface FileObject

openOutputStream

public OutputStream openOutputStream()
Specified by:
openOutputStream in interface FileObject

openReader

public Reader openReader(boolean ignoreEncodingErrors)
Specified by:
openReader in interface FileObject

openWriter

public Writer openWriter()
Specified by:
openWriter in interface FileObject

toUri

public URI toUri()
Specified by:
toUri in interface FileObject

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009. All Rights Reserved.