| 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) |
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) |
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) | | |
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) |
getCreationTime | public long getCreationTime()(Code) | | |
getHeight | public int getHeight()(Code) | | |
getId | public long getId()(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) | | |
|
|