klaus.dialogs
Class Jokes

java.lang.Object
  extended by klaus.dialogs.Jokes

public class Jokes
extends Object


Field Summary
private static Jokes jokes
           
(package private)  HashMap<JokeCategory,String[]> list
           
 
Constructor Summary
Jokes()
           
 
Method Summary
private  String getFileName(String baseFileName, String i18n)
           
static Jokes getJokes()
           
 String getRandomJoke(JokeCategory cat)
           
private  String[] readFile(String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

HashMap<JokeCategory,String[]> list

jokes

private static Jokes jokes
Constructor Detail

Jokes

public Jokes()
Method Detail

getJokes

public static Jokes getJokes()

getFileName

private String getFileName(String baseFileName,
                           String i18n)
                    throws FileNotFoundException
Throws:
FileNotFoundException

readFile

private String[] readFile(String fileName)

getRandomJoke

public String getRandomJoke(JokeCategory cat)