class Command
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.lang.String |
CAT |
(package private) static java.lang.String |
CD |
(package private) static java.lang.String |
EXIT |
(package private) static java.lang.String |
LS |
| Constructor and Description |
|---|
Command() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
doCat(Inode inode,
int inodeSize,
Ext2File ext2,
Superblock superblock,
GroupDescriptor groupDescriptor,
java.lang.String path)
Used for the "cat" command
|
(package private) static void |
doExit()
Is called when user types exit.
|
(package private) static void |
doLs(Inode inode,
int inodeSize,
Ext2File ext2,
Superblock superblock,
GroupDescriptor groupDescriptor)
Used for the "ls" command
|
static final java.lang.String CD
static final java.lang.String EXIT
static final java.lang.String LS
static final java.lang.String CAT
static void doExit()
static void doLs(Inode inode, int inodeSize, Ext2File ext2, Superblock superblock, GroupDescriptor groupDescriptor)
inode - The inode to useinodeSize - The inode sizeext2 - The Ext2File instance to provide a bytebuffer to usesuperblock - The superblock instancegroupDescriptor - The group descriptor instancestatic void doCat(Inode inode, int inodeSize, Ext2File ext2, Superblock superblock, GroupDescriptor groupDescriptor, java.lang.String path)
inode - The inode to useinodeSize - The inode sizeext2 - The Ext2File instance to provide a bytebuffer to usesuperblock - The superblock instancegroupDescriptor - The group descriptor instancepath - The path the user issued "cat" to