A F G J M O P R S V

A

appVersion - Static variable in class org.jfortuneui.jfortuneui
 

F

FilePref - class org.jfortune.FilePref.
This is used to get percentages of each file.
FilePref(ArrayList) - Constructor for class org.jfortune.FilePref
Constructor for FilePref.
FilePref(ArrayList, boolean) - Constructor for class org.jfortune.FilePref
Use this constructor when you want all files to have the same probability.
FileRead - class org.jfortune.FileRead.
This class is used to read information from the .num files.
FileRead(String) - Constructor for class org.jfortune.FileRead
Constructor for FileRead.Here i check to see if a a .num file of the parsed file exists or not.If not...i then create it...print out that this is the first time the program was run on this file and exit.A cookie is not actually printed out the first time jfortune will be run on a given file

G

getAllEqual() - Method in class org.jfortune.getOpts
Tells us if we need to give each file the same probabillity.
getNoPrint() - Method in class org.jfortune.getOpts
Tells us if we need to return all output instead of printing it on stdout.
getNum() - Method in class org.jfortune.FileRead
This is the method which reads in the no. in the .num of the input file and returns a random integer.The random int is chosen from between 0 and the number of cookies in the file.If the file contains null...i then scold the user saying that he/she was told that the file he/she run jfortune on was not a fortune cookie file and that they should learn to interpret error messages and use google.
getNumOpts() - Method in class org.jfortune.getOpts
Returns the no. of command line options parsed.
getOpts - class org.jfortune.getOpts.
This class will analyse the args string array to check for all the options parsed.
getOpts(String[]) - Constructor for class org.jfortune.getOpts
Constructor for getOpts.
getOutput() - Method in class org.jfortune.jfortuneclass
This returns the output(if we are passed the -r option, then this method should be called to get back all the output from the program).
getPrefs() - Method in class org.jfortune.FilePref
Returns an arraylist represeting the probability for each file.
getPrintFile() - Method in class org.jfortune.getOpts
Tells us if we need to print the file name with the quote.
getPrintPrefs() - Method in class org.jfortune.getOpts
Tells us if we need to print the probability for each file.
getPrintSyntax() - Method in class org.jfortune.getOpts
Tells us if we need to print the Syntax for jfortune.
getPrintVersion() - Method in class org.jfortune.getOpts
Tells us if we need to print the version information.
getQuote() - Method in class org.jfortune.jfortuneclass
The method does all the work of getting a quote from the file and sending it back to the caller function in a nice sorted way.
getRealArgs() - Method in class org.jfortune.getOpts
Returns an arraylist of actual files we need to choose from for the quote.
getWait() - Method in class org.jfortune.getOpts
Tells us if we need wait before ending the program.

J

jfortuneclass - class org.jfortune.jfortuneclass.
This is the main class which calls the other objects/classes, analyses input and then prints the quote or other information as told.
jfortuneclass(String[]) - Constructor for class org.jfortune.jfortuneclass
Constructor for a jfortuneclass object.Throws a IOException when the file parsed cannot be found..:)...silly you.
jfortuneui - class org.jfortuneui.jfortuneui.
 
jfortuneui(String[]) - Constructor for class org.jfortuneui.jfortuneui
 
jstrfile - class org.jstrfile.jstrfile.
This class creates the .num files which are later read by FileRead to give a random quote no.
jstrfile() - Constructor for class org.jstrfile.jstrfile
 

M

main(String[]) - Static method in class org.jfortune.jfortuneclass
 
main(String[]) - Static method in class org.jfortuneui.jfortuneui
 
main(String[]) - Static method in class org.jstrfile.jstrfile
Main method.
makeIndex(String) - Method in class org.jstrfile.jstrfile
This method makes counts the no. of quotes in the fortune cookie file and creates a .num file with that no.

O

on_about1_activate() - Method in class org.jfortuneui.jfortuneui
 
on_quit1_activate() - Method in class org.jfortuneui.jfortuneui
 
on_show_version1_activate() - Method in class org.jfortuneui.jfortuneui
 
org.jfortune - package org.jfortune
 
org.jfortuneui - package org.jfortuneui
 
org.jstrfile - package org.jstrfile
 

P

printQuote() - Method in class org.jfortuneui.jfortuneui
 
printSyntax() - Method in class org.jfortuneui.jfortuneui
 

R

run() - Method in class org.jfortune.jfortuneclass
This does the main work of calling the various other methods and displaying the quote.

S

syntax() - Static method in class org.jfortune.jfortuneclass
This displays jfortune Syntax information.

V

version() - Static method in class org.jfortune.jfortuneclass
This displays version information for jfortune.

A F G J M O P R S V