public interface Asset extends Item
Modifier and Type | Method and Description |
---|---|
String |
getCaption() |
String |
getComment() |
InputStream |
getContentStream()
Opens an
InputStream to the binary data of this Asset. |
String |
getCopyright() |
Calendar |
getCreated() |
String |
getDescription() |
String |
getFileName()
Returns the "preferred" file name for this asset's binary.
|
long |
getFileSize() |
String |
getLanguage() |
Calendar |
getLastModified() |
String |
getLink()
Returns a link to the binary of this asset; that is, a (partial) URL usable by client code to download the asset.
|
<M extends AssetMetadata> |
getMetadata(Class<M> metaDataType) |
String |
getMimeType() |
String |
getSubject() |
String |
getTitle() |
<M extends AssetMetadata> |
supports(Class<M> metaDataType) |
getAssetProvider, getItemKey, getName, getParent, getPath, isAsset, isFolder
String getLink()
String getTitle()
String getSubject()
String getDescription()
String getCaption()
String getLanguage()
String getCopyright()
String getComment()
Calendar getCreated()
Calendar getLastModified()
<M extends AssetMetadata> boolean supports(Class<M> metaDataType)
<M extends AssetMetadata> M getMetadata(Class<M> metaDataType)
String getMimeType()
long getFileSize()
String getFileName()
InputStream getContentStream()
InputStream
to the binary data of this Asset. Client code is responsible for closing it.
TODO: throw IOException ?Copyright © 2015 Magnolia International Ltd.. All rights reserved.