| java.lang.Object org.openlaszlo.iv.flash.GenUtil
GenUtil | final public class GenUtil (Code) | | |
Method Summary | |
public static InputStream | generate(Object file) | public static void | init(String installDir, boolean logToFile) Initialization. | public static Object | parse(String name) Parse specified .swt file and return instance of FlashFile object
Parameters: name - name of .swt file to parse. | public static void | process(Object file, Hashtable parms) Process given FlashFile object using given user parameters
Parameters: file - FlashFile object obtained from parse method. Parameters: parms - Hashtable of parameters. |
generate | public static InputStream generate(Object file) throws IVException(Code) | | Generate .swf file from given FlashFile
Parameters: file - FlashFile object ibtained from process method InputStream (ByteArrayInputStream) author: Dmitry Skavish version: 1.0 |
init | public static void init(String installDir, boolean logToFile)(Code) | | Initialization. Has to be called once before all the others methods.
Parameters: installDir - specifies absolute path to the directory where JGenerator is installed Parameters: logToFile - if true logging will be to log file (the one listed in the iv.properties file)otherwise to console author: Dmitry Skavish version: 1.0 |
parse | public static Object parse(String name) throws IVException, FileNotFoundException(Code) | | Parse specified .swt file and return instance of FlashFile object
Parameters: name - name of .swt file to parse. name may be absolute or relative. in last case it'srelative from the current directory. instance of FlashFile. exception: IVException - thrown if some generator problems occured exception: FileNotFoundException - thrown if the given file cannot be found author: Dmitry Skavish version: 1.0 |
process | public static void process(Object file, Hashtable parms) throws IVException(Code) | | Process given FlashFile object using given user parameters
Parameters: file - FlashFile object obtained from parse method. Parameters: parms - Hashtable of parameters. If property iv.flash.varCaseSensitive in iv.properties fileset to false then parameter names have to be in uppercase. exception: IVException - thrown if some generator problems occured author: Dmitry Skavish version: 1.0 |
|
|