|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.functions.FunctionProvider
org.mmbase.util.functions.DescribedFunctionProvider
org.mmbase.module.Module
org.mmbase.module.gui.flash.MMFlash
public class MMFlash
Implements the parsing and generating of dynamic flash files
| Field Summary | |
|---|---|
(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
|
| Fields inherited from class org.mmbase.module.Module |
|---|
configurationPath, getMaintainerFunction, getVersionFunction, properties, STATE_START_TIME |
| Fields inherited from class org.mmbase.util.functions.DescribedFunctionProvider |
|---|
description, guiName, name |
| Fields inherited from class org.mmbase.util.functions.FunctionProvider |
|---|
functions, getFunctions |
| Constructor Summary | |
|---|---|
MMFlash()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.mmbase.module.Module |
|---|
addInitParameters, checkModules, 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, startModules |
| Methods inherited from class org.mmbase.util.functions.DescribedFunctionProvider |
|---|
getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName, setName |
| Methods inherited from class org.mmbase.util.functions.FunctionProvider |
|---|
addFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final Logger log
scanparser scanp
String subdir
String generatortemppath
String generatorpath
String generatorprogram
LRUHashtable lru
MMBase mmb
| Constructor Detail |
|---|
public MMFlash()
| Method Detail |
|---|
public void init()
ModuleModule.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.
init in class Modulepublic void onload()
ModuleModule.startModules(). You should not call onload() directly.
onload in class Modulepublic byte[] getDebugSwt(scanpage sp)
sp - the scanpage that includes the parameters needed to generate the flash
public byte[] getScanParsedFlash(scanpage sp)
sp - scanpage
public 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 disk
static 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 file
String replaceQuote(String unquoted)
unquoted - The string with quotes (") in it
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||