Class FileDescriptor

java.lang.Object
   |
   +----FileDescriptor

public class FileDescriptor
extends Object
A file descriptor for an open file in a simulated file system.

Author:
Ray Ontko

Method Index

 o getBlockSize()
 o getBytes()
 o getDeviceNumber()
 o getFlags()
 o getIndexNode()
 o getIndexNodeNumber()
 o getMode()
 o getOffset()
 o getSize()
 o readBlock(short)
 o setDeviceNumber(short)
 o setIndexNodeNumber(short)
 o setOffset(int)
 o setSize(int)
 o writeBlock(short)

Methods

 o setDeviceNumber
 public void setDeviceNumber(short newDeviceNumber)
 o getDeviceNumber
 public short getDeviceNumber()
 o getIndexNode
 public IndexNode getIndexNode()
 o setIndexNodeNumber
 public void setIndexNodeNumber(short newIndexNodeNumber)
 o getIndexNodeNumber
 public short getIndexNodeNumber()
 o getFlags
 public int getFlags()
 o getBytes
 public byte[] getBytes()
 o getMode
 public short getMode()
 o getSize
 public int getSize()
 o setSize
 public void setSize(int newSize) throws IOException
 o getBlockSize
 public short getBlockSize()
 o getOffset
 public int getOffset()
 o setOffset
 public void setOffset(int newOffset)
 o readBlock
 public int readBlock(short relativeBlockNumber) throws Exception
 o writeBlock
 public int writeBlock(short relativeBlockNumber) throws Exception