Index
All Classes and Interfaces|All Packages
A
- assertContains(String, String[]) - Method in class ZybooksTester
- assertEquals(Object, Object) - Method in class ZybooksTester
- assertEquals(Object, Object, String) - Method in class ZybooksTester
- assertEquals(Object, Object, String, boolean) - Method in class ZybooksTester
- assertNull(Object) - Method in class ZybooksTester
- assertNull(Object, String) - Method in class ZybooksTester
B
- baos - Variable in class ZybooksTester
- body - Variable in class OpenMessage
C
- composeHelper() - Method in class MessageApp
-
Composes an OpenMessage.
- composeTest(PrintWriter) - Static method in class Tests
- controlOutput() - Method in class ZybooksTester
D
- decrypt(String, Key) - Method in class OpenMessage
-
Decrypts a String using a Key.
- decryptTest1(PrintWriter) - Static method in class Tests
- decryptTest2(PrintWriter) - Static method in class Tests
E
- encrypt(String, Key) - Method in class OpenMessage
-
Encrypts a String using a Key.
- encryptTest1(PrintWriter) - Static method in class Tests
- encryptTest2(PrintWriter) - Static method in class Tests
F
- feedbackWriter(String, String, String) - Method in class ZybooksTester
- from - Variable in class OpenMessage
G
- getBody() - Method in interface Message
- getBody() - Method in class OpenMessage
-
Gets the body of the message
- getFrom() - Method in interface Message
- getFrom() - Method in class OpenMessage
-
Gets the "from" portion of the message
- getInput(String) - Method in class MessageView
-
Prints a message to console then returns next line of input from user using the Scanner.
- getSubject() - Method in interface Message
- getSubject() - Method in class OpenMessage
-
Gets the subject of the message
- getSystemOut() - Method in class ZybooksTester
- getTo() - Method in interface Message
- getTo() - Method in class OpenMessage
-
Gets the "to" portion of the message
- go() - Method in class MessageApp
-
Runs the program, keep going until user input is "x".
I
K
- Key - Class in Unnamed Package
- Key(int, int) - Constructor for class Key
-
Constructor for Key.
L
- loadFile(String) - Static method in class MessageLoader
-
This method reads through a file, and builds a number of Message objects based on the contents of that file.
M
- main(String[]) - Static method in class MessageApp
- main(String[]) - Static method in class MessageMain
- main(String[]) - Static method in class OpenMessage
- main(String[]) - Static method in class Tests
- Message - Interface in Unnamed Package
-
Provided interface containing methods you *must* implement in OpenMessage.java
- MessageApp - Class in Unnamed Package
- MessageApp(ArrayList<OpenMessage>) - Constructor for class MessageApp
-
Initialize the ArrayList of OpenMessages
- MessageLoader - Class in Unnamed Package
-
This utility class contains methods that will read in a file as it is provided, and load the data into an ArrayList with
OpenMessageobjects inside of it. - MessageLoader() - Constructor for class MessageLoader
- MessageMain - Class in Unnamed Package
- MessageMain() - Constructor for class MessageMain
- messages - Variable in class MessageApp
- MessageView - Class in Unnamed Package
- MessageView() - Constructor for class MessageView
O
- OpenMessage - Class in Unnamed Package
- OpenMessage(String, String, String, String) - Constructor for class OpenMessage
P
- parseLine(String) - Static method in class MessageLoader
-
Takes in a line, in which one must grab the substring *after* the ":".
- printMenu() - Method in class MessageView
-
Prints the menu for user.
- processCommand(String) - Method in class MessageApp
-
Checks the command (options from the menu) and calls appropriate methods for its functionality.
- provideInput(String) - Method in class Tests
R
- readFileToString(String) - Static method in class ZybooksTester
- restoreSystemInputOutput() - Method in class Tests
S
- scanner - Variable in class MessageView
- search(String, String) - Method in interface Message
- search(String, String) - Method in class OpenMessage
-
Searches for a particular term in a part of the message.
- searchFrom(String) - Method in interface Message
- searchFrom(String) - Method in class OpenMessage
-
Searches for a message by "from" portion of the message.
- searchHelper() - Method in class MessageApp
-
Asks user for what type of search and what they are searching for, then returns the message if found.
- searchSubject(String) - Method in interface Message
- searchSubject(String) - Method in class OpenMessage
-
Searches for a message by subject.
- searchTo(String) - Method in interface Message
- searchTo(String) - Method in class OpenMessage
-
Searches for a message by "to" portion of the message.
- setSystemIn(String) - Method in class ZybooksTester
- shift - Variable in class Key
- subject - Variable in class OpenMessage
- systemIn - Variable in class Tests
T
- testFeedback - Variable in class ZybooksTester
- testIn - Variable in class Tests
- Tests - Class in Unnamed Package
- Tests() - Constructor for class Tests
- to - Variable in class OpenMessage
- toString() - Method in class OpenMessage
-
Creates and returns a String that better represents our OpenMessage object.
- toStringTest(PrintWriter) - Static method in class Tests
V
- view - Variable in class MessageApp
Z
- ZybooksTester - Class in Unnamed Package
-
This class wraps various junit tests.
- ZybooksTester(PrintWriter) - Constructor for class ZybooksTester
All Classes and Interfaces|All Packages