public class MMFlash extends Module
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
generatorpath |
(package private) String |
generatorprogram |
(package private) String |
generatortemppath |
(package private) static Logger |
log |
(package private) LRUHashtable |
lru |
(package private) MMBase |
mmb |
(package private) scanparser |
scanp |
(package private) String |
subdir |
configurationPath, getMaintainerFunction, getVersionFunction, properties, STATE_START_TIMEdescription, guiName, namefunctions, getFunctions| Constructor and Description |
|---|
MMFlash() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getDebugSwt(scanpage sp)
Return the generated flash with debug information.
|
byte[] |
getParsedFlash(String flashXML,
String workingdir)
This function will try to generate a new flash thingie, generated from a template.
|
byte[] |
getScanParsedFlash(scanpage sp)
Dynamically generated flash.
|
void |
init()
Initializes the module.
|
void |
onload()
prepares the module when loaded.
|
(package private) String |
replaceQuote(String unquoted)
Escape quotes in a string, because flash generator will fail otherwise
|
(package private) static boolean |
saveFile(String filename,
byte[] value)
Save a byte-array to disk
|
(package private) static boolean |
saveFile(String filename,
String value)
Save a stringvalue to a file on the filesystem
|
addInitParameters, getInitParameter, getInitParameter, getInitParameter, getInitParameters, getInitParameters, getMaintainer, getModule, getModule, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModuleReader, getModules, getState, getStates, getVersion, hasModule, hasStarted, loadInitParameters, loadInitParameters, maintainance, setInitParameter, setMaintainer, setState, setVersion, shutdown, shutdownModules, startModule, startModulesgetDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName, setNameaddFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstancestatic final Logger log
scanparser scanp
String subdir
String generatortemppath
String generatorpath
String generatorprogram
LRUHashtable lru
MMBase mmb
public void init()
ModuleModule.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.public void onload()
ModuleModule.startModules(). You should not call onload() directly.public byte[] getDebugSwt(scanpage sp)
sp - the scanpage that includes the parameters needed to generate the flashpublic byte[] getScanParsedFlash(scanpage sp)
sp - scanpagepublic byte[] getParsedFlash(String flashXML, String workingdir)
flashXML - a xml which contains the manipulations on the flash templateworkingdir - the path where there has to be searched for the template and the
other things, like pictures.(THIS LOOKS BELOW THE mmbase.htmlroot !!)static boolean saveFile(String filename, String value)
filename - File to save the stringvalue tovalue - Value to save to diskstatic boolean saveFile(String filename, byte[] value)
filename - The name of the file to save the data tovalue - The byte-array containing the data for the fileMMBase 1.9-SNAPSHOT - ${javadoctimestamp}