org.weblab_project.core.model.multimedia
Class BinaryMediaUnit
java.lang.Object
org.weblab_project.core.model.Resource
org.weblab_project.core.model.MediaUnit
org.weblab_project.core.model.multimedia.BinaryMediaUnit
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- Audio, Image, Video
public abstract class BinaryMediaUnit
- extends MediaUnit
- implements java.io.Serializable
As a resource, a binary unit could be annotated to provide, for example, meta-information on its content or its format. It can also be described with low level descriptors.
Binary media unit is abstract and enable its inherited media units to have the capability to store their native content is a binary 64 field. But when this content is very large, the
use of the binary content is encouraged. It fact, the real binary content of the binary unit will be in a content object and not in the content field of binary media unit. This will
prevent the transport of the whole content between every services in the platform if not needed. If the content is in a separated content object, then the binary media unit object
should be annotated with the URI of this content object.
Data Exchange Model for WebLab platform provided by EADS Multimedia package - Version 1.1 - 2009/05
Java class for binaryMediaUnit complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="binaryMediaUnit">
<complexContent>
<extension base="{http://weblab-project.org/core/model/}mediaUnit">
<sequence>
<element name="content" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
- See Also:
- Serialized Form
Field Summary |
protected byte[] |
content
|
Method Summary |
byte[] |
getContent()
Gets the value of the content property. |
void |
setContent(byte[] value)
Sets the value of the content property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
content
protected byte[] content
BinaryMediaUnit
public BinaryMediaUnit()
getContent
public byte[] getContent()
- Gets the value of the content property.
- Returns:
- possible object is
byte[]
setContent
public void setContent(byte[] value)
- Sets the value of the content property.
- Parameters:
value
- allowed object is
byte[]
Copyright © 2004-2010. All Rights Reserved.