Java Doc for FlashFile.java in  » Ajax » Laszlo-4.0.10 » org » openlaszlo » iv » flash » api » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » Laszlo 4.0.10 » org.openlaszlo.iv.flash.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openlaszlo.iv.flash.api.FlashFile

All known Subclasses:   org.openlaszlo.compiler.SWFFile,
FlashFile
public class FlashFile (Code)
Class represents a Flash file (either .swt or .swf)
author:
   Dmitry Skavish



Constructor Summary
public  FlashFile()
    

Method Summary
public  voidaddDef(FlashDef def)
    
public  voidaddDefInAssets(String name, FlashDef def)
    
public  voidaddDefToLibrary(String name, FlashDef def)
    
public synchronized  FlashFileaddExternalFile(String fileName, boolean cache)
    
public  voidaddExternalFile(String filename, FlashFile file)
    
public synchronized  ObjectaddExternalMedia(IVUrl url, boolean cache)
    
public synchronized  ObjectaddExternalMedia(String fileName, boolean cache)
    
public  voidaddExternalMedia(String filename, Object object)
    
public synchronized  FlashFilecopyFile()
    
public  Enumerationdefinitions()
    
public  FlashOutputgenerate()
    
public  FlashOutputgenerate(FontsCollector fc, FontsCollector pfc, boolean hasPreloader)
    
public  FlashDefgetDef(int id)
    
public  FlashDefgetDefFromLibrary(String name)
    
public  FlashDefgetDefInAssets(String name)
    
public synchronized  FlashFilegetDefaultSymbolFile()
    
public  StringgetEncoding()
    
public  FlashFilegetExternalFile(String filename)
    
public  ObjectgetExternalMedia(String filename)
    
public  StringgetFileDir()
    
public  StringgetFileName()
    
public  intgetFileSize()
    
public  FontgetFont(String name)
    
public  intgetFrameRate()
    
public  Rectangle2DgetFrameSize()
    
public  StringgetFullName()
    
public  IVVectorgetLocalFonts()
    
public  ScriptgetMainScript()
    
public  ScriptgetScript(String name)
    
public  ScriptgetScriptInAssets(String name)
    
public  intgetVersion()
    
public  booleanisCompressed()
    
public  booleanisFullParsing()
    
public  booleanisTemplate()
    
public static  FlashFilenewFlashFile()
    
public static  FlashFileparse(String fileName, InputStream is)
    
public static  FlashFileparse(String fileName, InputStream is, boolean isFullParsing, String encoding)
    
public static  FlashFileparse(String fileName, FlashBuffer fb)
    
public static  FlashFileparse(String fileName, FlashBuffer fb, boolean isFullParsing, String encoding)
    
public static  FlashFileparse(String fileName)
    
public static  FlashFileparse(String fileName, boolean isFullParsing, String encoding)
    
public  voidprintContent(PrintStream out)
    
public  FlashFileprocessFile(Context context)
    
public  FlashObjectprocessObject(FlashObject fobj, Context context)
    
public  ScriptprocessScript(Script script, Context context)
    
public  voidsetCompressed(boolean isCompressed)
    
public  voidsetEncoding(String encoding)
    
public  voidsetFileDir(String fileDir)
    
public  voidsetFileName(String fileName)
    
public  voidsetFileSize(int size)
    
public  voidsetFrameRate(int fr)
    
public  voidsetFrameSize(Rectangle2D r)
    
public  voidsetFullParsing(boolean fullParsing)
    
public  voidsetMainScript(Script main)
    
public  voidsetTemplate(boolean isTemplate)
    
public  voidsetVersion(int version)
    


Constructor Detail
FlashFile
public FlashFile()(Code)




Method Detail
addDef
public void addDef(FlashDef def)(Code)
Adds definition by ID
Parameters:
  def - definition to be added



addDefInAssets
public void addDefInAssets(String name, FlashDef def)(Code)
Adds specified FlashDef into export table
Parameters:
  name - linkage name
Parameters:
  def - specified definition



addDefToLibrary
public void addDefToLibrary(String name, FlashDef def)(Code)
Adds definition by name
Parameters:
  name - name of the definition
Parameters:
  def - definition



addExternalFile
public synchronized FlashFile addExternalFile(String fileName, boolean cache) throws IVException(Code)
Reads, parses, and adds external file to this file (if it is not here yet)
Parameters:
  fileName - name of the file to be added
Parameters:
  cache - if true then cache the file in the MediaCache added flash file
exception:
  IVException -



addExternalFile
public void addExternalFile(String filename, FlashFile file)(Code)
Adds external file to this file (if it is not here yet)
Parameters:
  filename - name of the file to be added
Parameters:
  file - flash file to be added



addExternalMedia
public synchronized Object addExternalMedia(IVUrl url, boolean cache) throws IVException, IOException(Code)
Reads an external media and adds it to this file (if it is not here yet) and to media cache
Parameters:
  fileName - name of the file to be added
Parameters:
  cache - if true then cache the file in the MediaCache FlashFile or Bitmap
exception:
  IVException -



addExternalMedia
public synchronized Object addExternalMedia(String fileName, boolean cache) throws IVException, IOException(Code)
Reads an external media and adds it to this file (if it is not here yet) and to media cache
Parameters:
  fileName - name of the file to be added
Parameters:
  cache - if true then cache the file in the MediaCache FlashFile or Bitmap
exception:
  IVException -



addExternalMedia
public void addExternalMedia(String filename, Object object)(Code)
Adds external media to this file (if it is not here yet)
Parameters:
  filename - name of the file to be added
Parameters:
  object - media to be added



copyFile
public synchronized FlashFile copyFile()(Code)
Creates a copy of this flash file copy of this flash file



definitions
public Enumeration definitions()(Code)
Returns Enumeration of all definitions (FlashDef) defined within this file Enumeration of FlashDef



generate
public FlashOutput generate() throws IVException(Code)
Generates file into FlashOutput buffer output buffer
exception:
  IVException -



generate
public FlashOutput generate(FontsCollector fc, FontsCollector pfc, boolean hasPreloader) throws IVException(Code)
Generates file into FlashOutput buffer output buffer
exception:
  IVException -



getDef
public FlashDef getDef(int id)(Code)
Returns definition by ID
Parameters:
  id - definition ID definition or null



getDefFromLibrary
public FlashDef getDefFromLibrary(String name)(Code)
Finds definition by name in this file and all its external files (if any)
Parameters:
  name - name of the definition found definition or null



getDefInAssets
public FlashDef getDefInAssets(String name)(Code)
Returns FlashDef from export table by its linkage name
Parameters:
  name - linkage name of asset found asset or null



getDefaultSymbolFile
public synchronized FlashFile getDefaultSymbolFile()(Code)
Returns default symbol file default symbol file



getEncoding
public String getEncoding()(Code)



getExternalFile
public FlashFile getExternalFile(String filename)(Code)
Finds external file by file name
Parameters:
  filename - name of the file to be searched found file or null



getExternalMedia
public Object getExternalMedia(String filename)(Code)
Finds external media by its file name
Parameters:
  filename - name of the file to be searched found media or null



getFileDir
public String getFileDir()(Code)



getFileName
public String getFileName()(Code)



getFileSize
public int getFileSize()(Code)



getFont
public Font getFont(String name)(Code)
Searches font by its name in this file and all its external files
Parameters:
  name - font name font or null



getFrameRate
public int getFrameRate()(Code)
Return framerate of the file

getFrameRate()>>8 = number of frames per second framerate of the file




getFrameSize
public Rectangle2D getFrameSize()(Code)



getFullName
public String getFullName()(Code)
Returns absolute file name absolute file name



getLocalFonts
public IVVector getLocalFonts()(Code)
Returns all fonts defined within this file (fonts from external files are not included) vector of FontDef objects



getMainScript
public Script getMainScript()(Code)



getScript
public Script getScript(String name)(Code)
Finds script by name defined within this file or any external files
Parameters:
  name - script name found script or null



getScriptInAssets
public Script getScriptInAssets(String name)(Code)
Finds script by name defined as an ExportAsset within this file or any external files
Parameters:
  name - script name found script or null



getVersion
public int getVersion()(Code)



isCompressed
public boolean isCompressed()(Code)



isFullParsing
public boolean isFullParsing()(Code)



isTemplate
public boolean isTemplate()(Code)
Returns true if the file is Flash template, otherwise returns false

The criteria is not the file extention (.swt), but MM Generator special 'template' tag




newFlashFile
public static FlashFile newFlashFile()(Code)
Creates empty flash file with default settings default flash file



parse
public static FlashFile parse(String fileName, InputStream is) throws IVException(Code)
Parses Flash file from input stream
Parameters:
  fileName - file name, used only for establishing the file's current directory
Parameters:
  is - input stream used to read the file's content created flash file
exception:
  IVException -



parse
public static FlashFile parse(String fileName, InputStream is, boolean isFullParsing, String encoding) throws IVException(Code)



parse
public static FlashFile parse(String fileName, FlashBuffer fb) throws IVException(Code)
Parses Flash file from buffer
Parameters:
  fileName - file name, used only for establishing the file's current directory
Parameters:
  fb - flash buffer to read the file from created flash file
exception:
  IVException -



parse
public static FlashFile parse(String fileName, FlashBuffer fb, boolean isFullParsing, String encoding) throws IVException(Code)



parse
public static FlashFile parse(String fileName) throws IVException, FileNotFoundException(Code)
Parses Flash file from file
Parameters:
  fileName - file name of the flash file created flash file
exception:
  IVException -
exception:
  FileNotFoundException -



parse
public static FlashFile parse(String fileName, boolean isFullParsing, String encoding) throws IVException, FileNotFoundException(Code)



printContent
public void printContent(PrintStream out)(Code)



processFile
public FlashFile processFile(Context context) throws IVException(Code)
Processes this file in the specified context
Parameters:
  context - context to process in this file
exception:
  IVException -



processObject
public FlashObject processObject(FlashObject fobj, Context context) throws IVException(Code)
Processes the specified object in the specified context
Parameters:
  fobj - specified object
Parameters:
  context - specified context processed object
exception:
  IVException -



processScript
public Script processScript(Script script, Context context) throws IVException(Code)
Processes the specified script in the specified context
Parameters:
  script - specified script
Parameters:
  context - specified context processed script
exception:
  IVException -



setCompressed
public void setCompressed(boolean isCompressed)(Code)



setEncoding
public void setEncoding(String encoding)(Code)



setFileDir
public void setFileDir(String fileDir)(Code)



setFileName
public void setFileName(String fileName)(Code)



setFileSize
public void setFileSize(int size)(Code)



setFrameRate
public void setFrameRate(int fr)(Code)



setFrameSize
public void setFrameSize(Rectangle2D r)(Code)



setFullParsing
public void setFullParsing(boolean fullParsing)(Code)



setMainScript
public void setMainScript(Script main)(Code)



setTemplate
public void setTemplate(boolean isTemplate)(Code)



setVersion
public void setVersion(int version)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.