devs.speechpackage.fortunegen
Class FortuneTeller

java.lang.Object
  extended by devs.speechpackage.fortunegen.FortuneTeller
All Implemented Interfaces:
ParserListener

public class FortuneTeller
extends java.lang.Object
implements ParserListener

Author:
martin lukac Simple class allowing to randomly or not pick a sentence from a stripped Linux/UNIX fortune data file Use with caution - beware of fortunes:))

Field Summary
static java.lang.String daName
           
 
Constructor Summary
FortuneTeller()
           
 
Method Summary
 java.lang.String getRandom()
           
 void load(ParserEvent pE)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

daName

public static java.lang.String daName
Constructor Detail

FortuneTeller

public FortuneTeller()
Method Detail

load

public void load(ParserEvent pE)
Specified by:
load in interface ParserListener

getRandom

public java.lang.String getRandom()