public class Driver
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
currentDir |
private static Inode |
inode |
private static java.util.Stack<java.lang.String> |
pathStack |
private static boolean |
running |
| Constructor and Description |
|---|
Driver() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
getCommandAndExecute(java.lang.String input,
int inodeSize,
Superblock sBlock,
GroupDescriptor groupDesc,
Ext2File ext2)
This method will divide the user's input into a command and a target path and execute the given command.
|
private static java.lang.String |
getComputerName() |
private static void |
getCurrentPathName(java.lang.String[] pathArray)
Method to get the current-path.
|
private static boolean |
getInputYesNo()
If the user enters anything else than Y/y or N/n, they will be prompted to re-enter their decision.
|
static void |
main(java.lang.String[] args) |
private static Inode inode
private static java.lang.String currentDir
private static java.util.Stack<java.lang.String> pathStack
private static boolean running
private static java.lang.String getComputerName()
private static void getCurrentPathName(java.lang.String[] pathArray)
pathArray - The array containing the path values (leaps)private static boolean getInputYesNo()
private static void getCommandAndExecute(java.lang.String input,
int inodeSize,
Superblock sBlock,
GroupDescriptor groupDesc,
Ext2File ext2)
throws java.io.IOException
input - The user's raw inputinodeSize - The size of any inode on this FS.sBlock - The superblock of this FS.groupDesc - The group descriptor of this FS.ext2 - The Ext2File instance of the FS.java.io.IOException - This is not actually correct, the exception should be handled in Ext2File, but who cares.public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException