edu.utah.janosvm.kit.server.memfs
Class MemoryFile
java.lang.Object
|
+--edu.utah.janosvm.kit.server.memfs.MemoryFile
- public final class MemoryFile
- extends java.lang.Object
The MemoryFileSystem version of the java.io.File class.
Field Summary |
private MemoryBlock |
mb
The handle on the memory block in the server team. |
Constructor Summary |
MemoryFile(java.lang.String fileName)
Construct a MemoryFile object that refers to the given file. |
Method Summary |
boolean |
delete()
Delete the file. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0 |
mb
private final MemoryBlock mb
- The handle on the memory block in the server team.
MemoryFile
public MemoryFile(java.lang.String fileName)
throws java.io.FileNotFoundException
- Construct a MemoryFile object that refers to the given file.
- Parameters:
fileName
- The name of the file in the MemoryFileSystem.- Throws:
Throws
- a FileNotFoundException if the file couldn't be
found or the server team was unreachable.
delete
public boolean delete()
throws java.io.IOException
- Delete the file.
- Returns:
- True if the file was deleted.
- Throws:
Throws
- an IOException if the file couldn't be found or the
server team was unreachable.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003