L2JPREMIUM  5M
com.premium.game.cache.HtmCache Class Reference

Public Member Functions

String getHtm (String filename)
 
String getHtmForce (String filename)
 
String getQuestHtm (String fileName, Quest quest)
 
boolean isLoadable (String path)
 
void reload ()
 
void reloadPath (String path)
 

Static Public Member Functions

static HtmCache getInstance ()
 

Member Function Documentation

◆ getHtm()

String com.premium.game.cache.HtmCache.getHtm ( String  filename)
inline

Return content of html message given by filename.

Parameters
filename: Desired html filename.
Returns
String : Returns content if filename exists, otherwise returns null.

◆ getHtmForce()

String com.premium.game.cache.HtmCache.getHtmForce ( String  filename)
inline

Return content of html message given by filename. In case filename does not exist, returns notice.

Parameters
filename: Desired html filename.
Returns
String : Returns content if filename exists, otherwise returns notice.

◆ isLoadable()

boolean com.premium.game.cache.HtmCache.isLoadable ( String  path)
inline

Check if an HTM exists and can be loaded. If so, it is loaded into HtmCache.

Parameters
pathThe path to the HTM
Returns
true if the HTM can be loaded.

◆ reload()

void com.premium.game.cache.HtmCache.reload ( )
inline

Cleans HtmCache.

◆ reloadPath()

void com.premium.game.cache.HtmCache.reloadPath ( String  path)
inline

Reloads given directory. All sub-directories are parsed, all html files are loaded to HtmCache.

Parameters
path: Directory to be reloaded.

The documentation for this class was generated from the following file: