Java Doc for ObjectWriter.java in  » Ajax » Laszlo-4.0.10 » org » openlaszlo » compiler » 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.compiler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openlaszlo.compiler.ObjectWriter

All known Subclasses:   org.openlaszlo.compiler.SWFWriter,  org.openlaszlo.compiler.DHTMLWriter,
ObjectWriter
abstract class ObjectWriter (Code)
Accumulates code, XML, and assets to an object file. Properties documented in Compiler.getProperties.

Inner Class :class ImportResourceError extends CompilationError
Inner Class :class Resource implements Comparable

Field Summary
final protected  intTWIP
    
protected  Stringliburl
    
protected  CompilerMediaCachemCache
    
protected  MapmClickResourceMap
    
protected  booleanmCloseCalled
     True iff close() has been called.
final protected  CompilationEnvironmentmEnv
    
protected  intmExecutionTimeout
    
 FontsCollectormFontsCollector
    
protected  intmHeight
    
protected  ElementmInfo
    
protected static  LoggermLogger
    
protected  MapmMultiFrameResourceMap
    
final protected  HashSetmMultiFrameResourceSet
    
protected  SymbolGeneratormNameSupply
    
protected  booleanmPreloaderAdded
    
protected  PropertiesmProperties
    
protected  intmRecursionLimit
    
protected  MapmResourceMap
     maps resource files to the Resources definition in the swf file.
protected  OutputStreammStream
     Stream to write to.
protected  intmWidth
    

Constructor Summary
 ObjectWriter(Properties props, OutputStream stream, CompilerMediaCache cache, boolean importLibrary, CompilationEnvironment env)
     Initializes a ObjectWriter with an OutputStream to which a new object file will be written when ObjectWriter.close() is called.

Method Summary
abstract  voidaddPreloader(CompilationEnvironment env)
    
abstract  voidaddPreloaderScript(String script)
    
abstract public  intaddScript(String script)
     Compiles the specified script to bytecodes and add its bytecodes to the app.
abstract public  voidclose()
     Writes the object code to the OutputStream that was supplied to the ObjectWriter's constructor.
abstract public  voidcloseSnippet()
    
 StringcreateName()
     Returns a new unique js name.
abstract  FontManagergetFontManager()
    
protected  ResourcegetMultiFrameResource(String fileName, String name, int fNum)
     Find a resource for importing into a movie and return a flashdef.
protected  ResourcegetResource(String fileName, String name)
     Find a resource for importing into a movie and return a flashdef.
protected  ResourcegetResource(String fileName, String name, boolean stop)
     Find a resource for importing into a movie and return a flashdef.
abstract public  voidimportBaseLibrary(String library, CompilationEnvironment env)
    
abstract public  StringimportClickResource(File file)
    
abstract  voidimportFontStyle(String fileName, String face, String style, CompilationEnvironment env)
    
protected  ResourceimportMP3(String fileName, String name)
    
abstract public  voidimportPreloadResource(String fileName, String name)
     Import a resource file into the preloader movie.
abstract public  voidimportPreloadResource(File fileName, String name)
    
abstract public  voidimportPreloadResource(List sources, String name, File parent)
     Import a multiframe resource into the current movie.
public  StringimportResource(File file)
     Imports file, if it has not previously been imported, and returns in any case the name of the clip that refers to it. File should refer to a graphical asset.
abstract public  voidimportResource(String fileName, String name)
     Import a resource file into the current movie.
abstract public  voidimportResource(File fFile, String name)
    
abstract public  voidimportResource(List sources, String name, File parent)
    
protected  ResourceimportSWF(String fileName, String name, boolean addStop)
    
abstract public  booleanisDeviceFont(String face)
    
abstract public  voidopenSnippet(String url)
    
abstract  voidsetCanvas(Canvas canvas, String canvasConstructor)
    
abstract  voidsetCanvasDefaults(Canvas canvas, CompilerMediaCache mc)
    
abstract public  voidsetDeviceFont(String face)
    
abstract public  voidsetFontManager(FontManager fm)
    
public  voidsetScriptLimits(int recursion, int timeout)
    
public static  StringstripBaseName(String fileName, CompilationEnvironment env)
    
 voidwarn(CompilationEnvironment env, String msg)
    

Field Detail
TWIP
final protected int TWIP(Code)
Constant



liburl
protected String liburl(Code)



mCache
protected CompilerMediaCache mCache(Code)
media cache for transcoding



mClickResourceMap
protected Map mClickResourceMap(Code)



mCloseCalled
protected boolean mCloseCalled(Code)
True iff close() has been called.



mEnv
final protected CompilationEnvironment mEnv(Code)



mExecutionTimeout
protected int mExecutionTimeout(Code)



mFontsCollector
FontsCollector mFontsCollector(Code)



mHeight
protected int mHeight(Code)
Canvas Height



mInfo
protected Element mInfo(Code)
InfoXML



mLogger
protected static Logger mLogger(Code)
Logger



mMultiFrameResourceMap
protected Map mMultiFrameResourceMap(Code)



mMultiFrameResourceSet
final protected HashSet mMultiFrameResourceSet(Code)
Set of resoures we're importing into the output



mNameSupply
protected SymbolGenerator mNameSupply(Code)
Unique name supply for clip/js names



mPreloaderAdded
protected boolean mPreloaderAdded(Code)
Has the preloader been added?



mProperties
protected Properties mProperties(Code)
Properties



mRecursionLimit
protected int mRecursionLimit(Code)



mResourceMap
protected Map mResourceMap(Code)
maps resource files to the Resources definition in the swf file.



mStream
protected OutputStream mStream(Code)
Stream to write to.



mWidth
protected int mWidth(Code)
Canvas Width




Constructor Detail
ObjectWriter
ObjectWriter(Properties props, OutputStream stream, CompilerMediaCache cache, boolean importLibrary, CompilationEnvironment env)(Code)
Initializes a ObjectWriter with an OutputStream to which a new object file will be written when ObjectWriter.close() is called.
Parameters:
  stream - A java.io.OutputStream that themovie will be written to.
Parameters:
  props - list of properties
Parameters:
  cache - media cache
Parameters:
  importLibrary - If true, the compiler will add in the LaszloLibrary.




Method Detail
addPreloader
abstract void addPreloader(CompilationEnvironment env)(Code)



addPreloaderScript
abstract void addPreloaderScript(String script)(Code)



addScript
abstract public int addScript(String script)(Code)
Compiles the specified script to bytecodes and add its bytecodes to the app.
Parameters:
  script - the script to be compiled the number of bytes



close
abstract public void close() throws IOException(Code)
Writes the object code to the OutputStream that was supplied to the ObjectWriter's constructor.
throws:
  IOException - if an error occurs



closeSnippet
abstract public void closeSnippet() throws IOException(Code)



createName
String createName()(Code)
Returns a new unique js name.



getFontManager
abstract FontManager getFontManager()(Code)



getMultiFrameResource
protected Resource getMultiFrameResource(String fileName, String name, int fNum) throws ImportResourceError(Code)
Find a resource for importing into a movie and return a flashdef. Doesn't includes stop action.
Parameters:
  fileName - file name of the resource
Parameters:
  name - name of the resource



getResource
protected Resource getResource(String fileName, String name) throws ImportResourceError(Code)
Find a resource for importing into a movie and return a flashdef. Includes stop action.
Parameters:
  fileName - file name of the resource
Parameters:
  name - name of the resource



getResource
protected Resource getResource(String fileName, String name, boolean stop) throws ImportResourceError(Code)
Find a resource for importing into a movie and return a flashdef.
Parameters:
  name - name of the resource
Parameters:
  fileName - file name of the resource
Parameters:
  stop - include stop action if true



importBaseLibrary
abstract public void importBaseLibrary(String library, CompilationEnvironment env)(Code)



importClickResource
abstract public String importClickResource(File file) throws ImportResourceError(Code)



importFontStyle
abstract void importFontStyle(String fileName, String face, String style, CompilationEnvironment env) throws FileNotFoundException, CompilationError(Code)



importMP3
protected Resource importMP3(String fileName, String name) throws IVException, IOException(Code)

Parameters:
  fileName -
Parameters:
  name -



importPreloadResource
abstract public void importPreloadResource(String fileName, String name) throws ImportResourceError(Code)
Import a resource file into the preloader movie. Using a name that already exists clobbers the old resource (for now).
Parameters:
  fileName - file name of the resource
Parameters:
  name - name of the MovieClip/Sprite
throws:
  CompilationError -



importPreloadResource
abstract public void importPreloadResource(File fileName, String name) throws ImportResourceError(Code)



importPreloadResource
abstract public void importPreloadResource(List sources, String name, File parent) throws ImportResourceError(Code)
Import a multiframe resource into the current movie. Using a name that already exists clobbers the old resource (for now).



importResource
public String importResource(File file)(Code)
Imports file, if it has not previously been imported, and returns in any case the name of the clip that refers to it. File should refer to a graphical asset.



importResource
abstract public void importResource(String fileName, String name) throws ImportResourceError(Code)
Import a resource file into the current movie. Using a name that already exists clobbers the old resource (for now).
Parameters:
  fileName - file name of the resource
Parameters:
  name - name of the MovieClip/Sprite
throws:
  CompilationError -



importResource
abstract public void importResource(File fFile, String name) throws ImportResourceError(Code)



importResource
abstract public void importResource(List sources, String name, File parent)(Code)



importSWF
protected Resource importSWF(String fileName, String name, boolean addStop) throws IVException, FileNotFoundException(Code)

Parameters:
  fileName -
Parameters:
  name -
Parameters:
  addStop - if true, add stop action to last frame



isDeviceFont
abstract public boolean isDeviceFont(String face)(Code)



openSnippet
abstract public void openSnippet(String url) throws IOException(Code)



setCanvas
abstract void setCanvas(Canvas canvas, String canvasConstructor)(Code)
Sets the canvas for the app
Parameters:
  canvas -



setCanvasDefaults
abstract void setCanvasDefaults(Canvas canvas, CompilerMediaCache mc)(Code)



setDeviceFont
abstract public void setDeviceFont(String face)(Code)



setFontManager
abstract public void setFontManager(FontManager fm)(Code)



setScriptLimits
public void setScriptLimits(int recursion, int timeout)(Code)



stripBaseName
public static String stripBaseName(String fileName, CompilationEnvironment env)(Code)



warn
void warn(CompilationEnvironment env, String msg)(Code)
Generate a warning message



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.