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
-
getBlockSize()
-
-
getBytes()
-
-
getDeviceNumber()
-
-
getFlags()
-
-
getIndexNode()
-
-
getIndexNodeNumber()
-
-
getMode()
-
-
getOffset()
-
-
getSize()
-
-
readBlock(short)
-
-
setDeviceNumber(short)
-
-
setIndexNodeNumber(short)
-
-
setOffset(int)
-
-
setSize(int)
-
-
writeBlock(short)
-
setDeviceNumber
public void setDeviceNumber(short newDeviceNumber)
getDeviceNumber
public short getDeviceNumber()
getIndexNode
public IndexNode getIndexNode()
setIndexNodeNumber
public void setIndexNodeNumber(short newIndexNodeNumber)
getIndexNodeNumber
public short getIndexNodeNumber()
getFlags
public int getFlags()
getBytes
public byte[] getBytes()
getMode
public short getMode()
getSize
public int getSize()
setSize
public void setSize(int newSize) throws IOException
getBlockSize
public short getBlockSize()
getOffset
public int getOffset()
setOffset
public void setOffset(int newOffset)
readBlock
public int readBlock(short relativeBlockNumber) throws Exception
writeBlock
public int writeBlock(short relativeBlockNumber) throws Exception