org.opencrx.kernel.document1.cci
Interface Media
- All Superinterfaces:
- BasicObject, ContextCapable, ExtentCapable, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, ViewCapable
- All Known Subinterfaces:
- Media, MediaContent
- All Known Implementing Classes:
- MediaContentImpl, MediaImpl, MediaImpl
public interface Media
- extends BasicObject
| Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0 |
refAddEventListener, refAddToUnitOfWork, refAddValue, refContext, refDefaultFetchGroup, refDelegate, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refInitialize, refInitialize, refIsDeleted, refIsDirty, refIsNew, refIsPersistent, refIsWriteProtected, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refSetValue, refWriteProtect |
getContent
InputStream getContent()
- Deprecated.
- Returns:
- A java.io.InputStream containing the binary value as stream for this attribute.
- Throws:
JmiException - If the values cannot be retrieved for some reason.
getContent
long getContent(OutputStream stream,
long position)
- Parameters:
stream - A java.io.OutputStream containing the binary value as output stream.position - start streaming at given position.
- Returns:
- length of the stream.
- Throws:
JmiException - If the values cannot be retrieved for some reason.
setContent
void setContent(InputStream newValue)
- Parameters:
newValue - A java.io.InputStream containing the binary value for this attribute.
- Throws:
JmiException - If the value cannot be set for some reason.
setContent
void setContent(InputStream newValue,
long length)
- Parameters:
newValue - A java.io.InputStream containing the binary value for this attribute.length - length of the stream in bytes.
- Throws:
JmiException - If the value cannot be set for some reason.
getContentLength
Long getContentLength()
- Returns:
- The possibly null value for attribute
contentLength.
- Throws:
JmiException - If the value cannot be retrieved for some reason.
getContentMimeType
String getContentMimeType()
- Returns:
- The possibly null value for attribute
contentMimeType.
- Throws:
JmiException - If the value cannot be retrieved for some reason.
setContentMimeType
void setContentMimeType(String newValue)
- Sets a new value for the attribute
contentMimeType.
- Parameters:
newValue - The possibly null new value for attribute contentMimeType.
- Throws:
JmiException - If the value cannot be set for some reason.
getContentName
String getContentName()
- Returns:
- The possibly null value for attribute
contentName.
- Throws:
JmiException - If the value cannot be retrieved for some reason.
setContentName
void setContentName(String newValue)
- Sets a new value for the attribute
contentName.
- Parameters:
newValue - The possibly null new value for attribute contentName.
- Throws:
JmiException - If the value cannot be set for some reason.
getDescription
String getDescription()
- Returns:
- The possibly null value for attribute
description.
- Throws:
JmiException - If the value cannot be retrieved for some reason.
setDescription
void setDescription(String newValue)
- Sets a new value for the attribute
description.
- Parameters:
newValue - The possibly null new value for attribute description.
- Throws:
JmiException - If the value cannot be set for some reason.
This software is published under the BSD license. Copyright © 2003-2007, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.