A C D E G H I J L M N R S T U

A

addJFile(String, JFile) - Method in class Directory
Add a JFile to this Directory.
append(String) - Method in class TextFile
Append text to the end of the file.
appendLine(String) - Method in class TextFile
Append a new line of text to the end of the file.

C

CLILogin() - Method in class LoginInterpreter
Simulates behavior at login: prompt.
createUser(String, Directory, String) - Method in class Juno
Create a new User.

D

Directory - class Directory.
Directory of JFiles.
Directory(String, User, Directory) - Constructor for class Directory
Construct a Directory.
doIt(StringTokenizer, Shell) - Method in class HelpCommand
Print out help for all commands.
doIt(StringTokenizer, Shell) - Method in class ListCommand
List contents of the current working directory.
doIt(StringTokenizer, Shell) - Method in class LogoutCommand
Log out from the current shell.
doIt(StringTokenizer, Shell) - Method in class MkdirCommand
Create a new Directory in the current Directory.
doIt(StringTokenizer, Shell) - Method in class NewfileCommand
Create a new TextFile in the current Directory.
doIt(StringTokenizer, Shell) - Method in class RemoveCommand
Remove a TextFile.
doIt(StringTokenizer, Shell) - Method in class ShellCommand
Execute the command.
doIt(StringTokenizer, Shell) - Method in class TypeCommand
Display the contents of a TextFile.

E

ExitShellException - exception ExitShellException.
Exception raised for exiting a shell.
ExitShellException() - Constructor for class ExitShellException
 

G

getArgString() - Method in class ShellCommand
The argument string prototype.
getCommandNames() - Method in class ShellCommandTable
Get an array of the command names.
getCommandTable() - Method in class Juno
The shell command table for this system.
getConsole() - Method in class Shell
The console associated with this Shell.
getContents() - Method in class TextFile
The contents of a text file.
getCreateDate() - Method in class JFile
The date and time of the file's creation.
getDot() - Method in class Shell
The current working directory for this shell.
getFileNames() - Method in class Directory
Get the contents of this Directory as an array of the file names, each of which is a String.
getHelpString() - Method in class ShellCommand
Help for this command.
getHome() - Method in class User
Get the User's home Directory.
getHostName() - Method in class Juno
The name of the host computer on which this system is running.
getModDate() - Method in class JFile
The date and time of the file's last modification.
getName() - Method in class JFile
The name of the file.
getName() - Method in class User
Get the User's login name.
getOS() - Method in class Juno
The name of this operating system.
getOwner() - Method in class JFile
The file's owner.
getParent() - Method in class JFile
The Directory containing this file.
getPathName() - Method in class JFile
The full path to this file.
getPrompt() - Method in class Shell
The prompt for the CLI.
getRealName() - Method in class User
Get the user's real name.
getSize() - Method in class Directory
The size of a Directory is the number of JFiles it contains.
getSize() - Method in class JFile
The size of the JFile (as defined by the child class)..
getSize() - Method in class TextFile
The size of a text file is the number of characters stored.
getSuffix() - Method in class Directory
Suffix used for printing Directory names; we define it as the (system dependent) name separator used in path names.
getSuffix() - Method in class JFile
Suffix used for printing file names (as defined by the child class).
getSuffix() - Method in class TextFile
Suffix used for printing text file names is "".
getSystem() - Method in class Shell
The Juno object associated with this Shell.
getUser() - Method in class Shell
The User associated with this shell.
getUserHomes() - Method in class Juno
The directory containing all user homes for this system.
getVersion() - Method in class Juno
The version number for this system.

H

HelpCommand - class HelpCommand.
The Juno shell command to display help on the shell commands.

I

isRoot() - Method in class JFile
A JFile whose parent is null is defined to be the root (of a tree).

J

JFile - class JFile.
A JFile object models a file in a hierarchical file system.
JFile(String, User, Directory) - Constructor for class JFile
Construct a new JFile, set owner, parent, creation and modification dates.
Juno - class Juno.
Juno (Juno's Unix NOt) mimics a command line operating system like Unix.
Juno(String, boolean) - Constructor for class Juno
Construct a Juno (operating system) object.
JunoException - exception JunoException.
A general Juno Exception.
JunoException() - Constructor for class JunoException
The default (no argument) constructor.
JunoException(String) - Constructor for class JunoException
A general Juno exception holding a String message.

L

ListCommand - class ListCommand.
The Juno shell command to list contents of the current directory.
LoginInterpreter - class LoginInterpreter.
Interpreter for Juno login commands.
LoginInterpreter(Juno, Terminal) - Constructor for class LoginInterpreter
Construct a new LoginInterpreter for interpreting login commands.
LogoutCommand - class LogoutCommand.
The Juno shell command to log out.
lookup(String) - Method in class ShellCommandTable
Get a ShellCommand, given the command name key.
lookupUser(String) - Method in class Juno
Look up a user by user name.

M

MkdirCommand - class MkdirCommand.
The Juno shell command to create a new directory.
main(String[]) - Static method in class Juno
The Juno system may be given the following command line arguments.

N

NewfileCommand - class NewfileCommand.
The Juno shell command to create a text file.

R

RemoveCommand - class RemoveCommand.
The Juno shell command to remove a text file.
removeJFile(String) - Method in class Directory
Remove a JFile in this Directory, by name .
retrieveJFile(String) - Method in class Directory
Get a JFile in this Directory, by name .

S

Shell - class Shell.
Models a shell (command interpreter) The Shell knows the (Juno) system it's working in, the User who started it, and the console to which to send output.
Shell(Juno, User, Terminal) - Constructor for class Shell
Construct a login shell for the given user and console.
ShellCommand - class ShellCommand.
Model those features common to all ShellCommands.
ShellCommand(String, String) - Constructor for class ShellCommand
A constructor, always called (as super()) by the subclass.
ShellCommand(String) - Constructor for class ShellCommand
A constructor for commands having no arguments.
ShellCommandTable - class ShellCommandTable.
A ShellCommandTable object maintains a dispatch table of ShellCommand objects keyed by the command names used to invoke them.
ShellCommandTable() - Constructor for class ShellCommandTable
Construct and fill a shell command table.
separator - Static variable in class JFile
The separator used in pathnames.
setConsole(Terminal) - Method in class LoginInterpreter
Set the console for this interpreter.
setContents(String) - Method in class TextFile
Replace the contents of the file.
setDot(Directory) - Method in class Shell
Set the current working directory for this Shell.
setModDate() - Method in class JFile
Set the modification date to "now".
setOwner(User) - Method in class JFile
Set the owner for this file.

T

TextFile - class TextFile.
A TextFile is a JFile that holds text.
TextFile(String, User, Directory, String) - Constructor for class TextFile
Construct a TextFile with initial contents.
TypeCommand - class TypeCommand.
The Juno shell command to display the contents of a text file.
toString() - Method in class JFile
How a JFile represents itself as a String.
toString() - Method in class User
Convert the User to a String.

U

User - class User.
Model a Juno user.
User(String, Directory, String) - Constructor for class User
Construct a new User.

A C D E G H I J L M N R S T U