fable.manual
Class ManualFactory

java.lang.Object
  extended by fable.manual.ManualFactory

public class ManualFactory
extends java.lang.Object

Read HTML manual file from the resource. It reads each HTML file only once during the program runs.

Author:
Wonsik Kim

Nested Class Summary
static class ManualFactory.ManualSign
          This enum structure represents all manual filse to be used in the application.
 
Constructor Summary
ManualFactory()
           
 
Method Summary
static java.lang.String getManual(ManualFactory.ManualSign manualSign)
          Returns image associated with the imageSign object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManualFactory

public ManualFactory()
Method Detail

getManual

public static java.lang.String getManual(ManualFactory.ManualSign manualSign)
Returns image associated with the imageSign object.

Parameters:
manualSign - ManualSign object associated with the manual.
Returns:
manual content associated with the ManualSign object, or null if reading the manual is failed.
Requires:
manualSign != null.
Effects:
read from the resource if needed.
Modifies:
manualSign.path