public final class MediaMetaData extends Object implements Serializable
Picture
-objects with the resolution requested.
The MediaMetaData
can be retrieved from any Picture
type object by
calling the getPictureMetaData(Resolution)
-method.
Retrieved information is always dependent on the Resolution
provided.
Picture
,
Serialized FormConstructor and Description |
---|
MediaMetaData(int height,
int width,
long size,
String extension,
Revision revision,
long crc,
MimeType mimeType)
Construct a new media meta data instance.
|
MediaMetaData(int height,
int width,
long size,
String extension,
Revision revision,
long crc,
MimeType mimeType,
String encoding)
Construct a new media meta data instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getCrc()
Retrieve the media's CRC value.
|
String |
getEncoding()
Returns the encoding if this media is a file and has a encoding.
|
String |
getExtension()
Get the media's file extension.
|
int |
getHeight()
Get the height of the media in the given resolution.
|
MimeType |
getMimeType()
Returns the immutable MIME type.
|
Revision |
getRevision()
Get the
Revision the media is currently in. |
long |
getSize()
Get the media's file size.
|
int |
getWidth()
Get the width of the media in the given resolution.
|
String |
toString()
Get all relevant media metadata information as a
String |
public MediaMetaData(int height, int width, long size, String extension, Revision revision, long crc, MimeType mimeType)
public int getHeight()
public int getWidth()
public long getSize()
Long
public String getExtension()
public Revision getRevision()
Revision
the media is currently in.public long getCrc()
@Nullable public MimeType getMimeType()
@Nullable public String getEncoding()
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210