Java Doc for BinaryDescriptor.java in  » J2EE » fleXive » com » flexive » shared » value » 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 » J2EE » fleXive » com.flexive.shared.value 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.flexive.shared.value.BinaryDescriptor

BinaryDescriptor
public class BinaryDescriptor implements Serializable(Code)
Descriptor for binaries
author:
   Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Inner Class :public static enum PreviewSizes implements ObjectWithLabel

Field Summary
final public static  StringEMPTY
    
final public static  intPREVIEW1_BOX
    
final public static  intPREVIEW2_BOX
    
final public static  intPREVIEW3_BOX
    
final public static  intSYS_AUDIO
    
final public static  intSYS_DOC
    
final public static  intSYS_HTML
    
final public static  intSYS_ICAL
    
final public static  intSYS_INFO
    
final public static  intSYS_NOACCESS
    
final public static  intSYS_PDF
    
final public static  intSYS_PPT
    
final public static  intSYS_SELECTLIST_DEFAULT
    
final public static  intSYS_TXT
    
final public static  intSYS_UNKNOWN
    
final public static  intSYS_VIDEO
    
final public static  intSYS_XLS
    

Constructor Summary
public  BinaryDescriptor(String handle)
    
public  BinaryDescriptor(String handle, String name, long size, String mimeType, String metadata)
     Constructor for new Binaries in prepareSave process ..
public  BinaryDescriptor()
    
public  BinaryDescriptor(String name, long streamLength, InputStream stream)
    
public  BinaryDescriptor(String name, InputStream stream)
    
public  BinaryDescriptor(List<ServerLocation> server, long id, int version, int quality, long creationTime, String name, long size, String metadata, String mimeType, boolean image, double resolution, int width, int height)
    

Method Summary
public  voiddownload(OutputStream stream)
     Downloads the binary to the given stream.
public  booleanequals(Object obj)
    
public  longgetCreationTime()
    
public  StringgetHandle()
    
public  intgetHeight()
    
public  longgetId()
    
public  StringgetMetadata()
    
public  StringgetMimeType()
    
public  StringgetName()
    
public  intgetQuality()
    
public  doublegetResolution()
    
public  longgetSize()
    
public  intgetVersion()
    
public  intgetWidth()
    
public  inthashCode()
    
public  booleanisImage()
    
public  booleanisNewBinary()
    
public  StringtoString()
    

Field Detail
EMPTY
final public static String EMPTY(Code)



PREVIEW1_BOX
final public static int PREVIEW1_BOX(Code)
For images: box scaled size for preview 1



PREVIEW2_BOX
final public static int PREVIEW2_BOX(Code)
For images: box scaled size for preview 2



PREVIEW3_BOX
final public static int PREVIEW3_BOX(Code)
For images: box scaled size for preview 3



SYS_AUDIO
final public static int SYS_AUDIO(Code)



SYS_DOC
final public static int SYS_DOC(Code)



SYS_HTML
final public static int SYS_HTML(Code)



SYS_ICAL
final public static int SYS_ICAL(Code)



SYS_INFO
final public static int SYS_INFO(Code)



SYS_NOACCESS
final public static int SYS_NOACCESS(Code)



SYS_PDF
final public static int SYS_PDF(Code)



SYS_PPT
final public static int SYS_PPT(Code)



SYS_SELECTLIST_DEFAULT
final public static int SYS_SELECTLIST_DEFAULT(Code)



SYS_TXT
final public static int SYS_TXT(Code)



SYS_UNKNOWN
final public static int SYS_UNKNOWN(Code)



SYS_VIDEO
final public static int SYS_VIDEO(Code)



SYS_XLS
final public static int SYS_XLS(Code)




Constructor Detail
BinaryDescriptor
public BinaryDescriptor(String handle)(Code)
Constructor (for new Binaries)
Parameters:
  handle - binary_transit handle



BinaryDescriptor
public BinaryDescriptor(String handle, String name, long size, String mimeType, String metadata)(Code)
Constructor for new Binaries in prepareSave process ..
Parameters:
  handle - handle
Parameters:
  name - name of the binary
Parameters:
  size - size in bytes
Parameters:
  mimeType - MIME type
Parameters:
  metadata - xml meta data



BinaryDescriptor
public BinaryDescriptor()(Code)
Constructor for a new empty binary



BinaryDescriptor
public BinaryDescriptor(String name, long streamLength, InputStream stream) throws FxStreamException(Code)
Constructor (for new Binaries)
Parameters:
  name - name of the binary
Parameters:
  streamLength - expected size of the binary
Parameters:
  stream - an open input stream for the binary to upload
throws:
  FxStreamException - on upload errors



BinaryDescriptor
public BinaryDescriptor(String name, InputStream stream) throws FxStreamException(Code)
Constructor (for new Binaries with unknown length - use with care since it will have to create a temp file to determine length!)
Parameters:
  name - name of the binary
Parameters:
  stream - an open input stream for the binary to upload
throws:
  FxStreamException - on upload errors



BinaryDescriptor
public BinaryDescriptor(List<ServerLocation> server, long id, int version, int quality, long creationTime, String name, long size, String metadata, String mimeType, boolean image, double resolution, int width, int height)(Code)
Constructor - used for loading from the content engine
Parameters:
  server - server location
Parameters:
  id - binary id
Parameters:
  version - binary version
Parameters:
  quality - quality
Parameters:
  creationTime - timestamp when the binary data was created in the storage
Parameters:
  name - name
Parameters:
  size - size
Parameters:
  metadata - xml metadata
Parameters:
  mimeType - mime type
Parameters:
  image - binary is an image?
Parameters:
  resolution - resoltion (if image and detected)
Parameters:
  width - width (if image and detected)
Parameters:
  height - height (if image and detected)




Method Detail
download
public void download(OutputStream stream) throws FxStreamException(Code)
Downloads the binary to the given stream. The stream won't be flushed or closed!
Parameters:
  stream - stream used for download
throws:
  FxStreamException - on errors



equals
public boolean equals(Object obj)(Code)



getCreationTime
public long getCreationTime()(Code)



getHandle
public String getHandle()(Code)



getHeight
public int getHeight()(Code)



getId
public long getId()(Code)



getMetadata
public String getMetadata()(Code)



getMimeType
public String getMimeType()(Code)



getName
public String getName()(Code)



getQuality
public int getQuality()(Code)



getResolution
public double getResolution()(Code)



getSize
public long getSize()(Code)



getVersion
public int getVersion()(Code)



getWidth
public int getWidth()(Code)



hashCode
public int hashCode()(Code)



isImage
public boolean isImage()(Code)



isNewBinary
public boolean isNewBinary()(Code)



toString
public String toString()(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.