Maybe you should copy all functions of class from the tutorial? I past your code to google and find this link which contains whole implementation:
private String getNextQuote()
{
String returnValue = null;
try
{
if ((returnValue = qfs.readLine()) == null)
{
qfs.close();
this.openInputFile();
returnValue = qfs.readLine();
}
}
catch (IOException e)
{
returnValue = "IOException occurred in server.";
}
return returnValue;
}