com.ochafik.lang.compiler
Class MemoryFileObject
java.lang.Object
com.ochafik.lang.compiler.MemoryFileObject
- All Implemented Interfaces:
- FileObject
- Direct Known Subclasses:
- MemoryJavaFile
public class MemoryFileObject
- extends Object
- implements FileObject
MemoryFileObject
public MemoryFileObject(String path,
String content)
MemoryFileObject
public MemoryFileObject(String path,
byte[] content)
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.