|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object magoffin.matt.ma2.support.AbstractMediaMetadata magoffin.matt.ma2.support.SmetaMediaMetadata
public class SmetaMediaMetadata
General purpose MediaMetadata
using sMeta.
Constructor Summary | |
---|---|
SmetaMediaMetadata()
Default consstructor. |
|
SmetaMediaMetadata(java.util.Locale locale)
Construct with a specific locale. |
Method Summary | |
---|---|
java.lang.String |
getCreationDateKey()
|
java.awt.image.BufferedImage |
getEmbeddedImage()
Get a BufferedImage for the embedded image. |
int |
getEmbeddedImageHeight()
Get the height, in pixels, of the embedded image. |
java.lang.String |
getEmbeddedImageKey()
|
java.lang.String |
getEmbeddedImageMimeType()
Get the MIME type of the embedded image. |
org.springframework.core.io.Resource |
getEmbeddedImageResource()
Get the embedded image as a Resource (original image data). |
int |
getEmbeddedImageWidth()
Get the width, in pixels, of the embedded image. |
magoffin.matt.meta.MetadataResourceFactoryManager |
getFactoryManager()
|
java.util.Set<java.lang.Class<?>> |
getTreatAsStrings()
|
boolean |
hasEmbeddedImage()
Return true if an embedded image is available. |
void |
setCreationDateKey(java.lang.String creationDateKey)
|
void |
setEmbeddedImageKey(java.lang.String embeddedImageKey)
|
void |
setFactoryManager(magoffin.matt.meta.MetadataResourceFactoryManager factoryManager)
|
MediaMetadata |
setMediaResource(org.springframework.core.io.Resource resource)
Set the media resource from which to extract metadata from. |
void |
setTreatAsStrings(java.util.Set<java.lang.Class<?>> treatAsStrings)
|
Methods inherited from class magoffin.matt.ma2.support.AbstractMediaMetadata |
---|
addToMap, getCreationDate, getMetadataMap, setCreationDate, setMetadataMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface magoffin.matt.ma2.MediaMetadata |
---|
getCreationDate, getMetadataMap |
Constructor Detail |
---|
public SmetaMediaMetadata()
public SmetaMediaMetadata(java.util.Locale locale)
locale
- the Locale to useMethod Detail |
---|
public boolean hasEmbeddedImage()
EmbeddedImageMetadata
hasEmbeddedImage
in interface EmbeddedImageMetadata
public MediaMetadata setMediaResource(org.springframework.core.io.Resource resource)
MediaMetadata
After this method is called, the other methods on the returned instance should return meta data extracted from this resource. Note the returned instance may not be the same instance as the one the method is called on, so that during the extraction process a more-specific instance can be returned (e.g. for a digital camera metadata instance, a generic image metadata might be instantiated, but a more specific one returned by this method when it discovers the type of camera make/model the media resource was taken with).
setMediaResource
in interface MediaMetadata
resource
- the media resource being processed
public int getEmbeddedImageHeight()
EmbeddedImageMetadata
getEmbeddedImageHeight
in interface EmbeddedImageMetadata
public int getEmbeddedImageWidth()
EmbeddedImageMetadata
getEmbeddedImageWidth
in interface EmbeddedImageMetadata
public org.springframework.core.io.Resource getEmbeddedImageResource()
EmbeddedImageMetadata
If EmbeddedImageMetadata.hasEmbeddedImage()
returns true, this
method will extract the image data and return it as-is, without
any alteration, so it can be returned directly as the original
image data.
getEmbeddedImageResource
in interface EmbeddedImageMetadata
public java.lang.String getEmbeddedImageMimeType()
EmbeddedImageMetadata
getEmbeddedImageMimeType
in interface EmbeddedImageMetadata
public java.awt.image.BufferedImage getEmbeddedImage()
EmbeddedImageMetadata
If EmbeddedImageMetadata.hasEmbeddedImage()
returns true, this
method will extract the image data and return it as a
BufferedImage
.
getEmbeddedImage
in interface EmbeddedImageMetadata
public magoffin.matt.meta.MetadataResourceFactoryManager getFactoryManager()
public void setFactoryManager(magoffin.matt.meta.MetadataResourceFactoryManager factoryManager)
factoryManager
- the factoryManager to setpublic java.lang.String getCreationDateKey()
public void setCreationDateKey(java.lang.String creationDateKey)
creationDateKey
- the creationDateKey to setpublic java.util.Set<java.lang.Class<?>> getTreatAsStrings()
public void setTreatAsStrings(java.util.Set<java.lang.Class<?>> treatAsStrings)
treatAsStrings
- the treatAsStrings to setpublic java.lang.String getEmbeddedImageKey()
public void setEmbeddedImageKey(java.lang.String embeddedImageKey)
embeddedImageKey
- the embeddedImageKey to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |