|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<MediaMimeType>
com.silverpeas.gallery.constant.MediaMimeType
public enum MediaMimeType
Enumeration for all supported media types in the gallery component.
Enum Constant Summary | |
---|---|
BMP
|
|
ERROR
|
|
FLV
|
|
GIF
|
|
JPG
|
|
MOV
|
|
MP3
|
|
MP4
|
|
PNG
|
|
TIFF
|
Field Summary | |
---|---|
static Set<MediaMimeType> |
PHOTOS
|
static Set<MediaMimeType> |
SOUNDS
|
static Set<MediaMimeType> |
VIDEOS
|
Method Summary | |
---|---|
static MediaMimeType |
fromFile(File file)
Finds from the given file the corresponding MediaMimeType |
static MediaMimeType |
fromMimeType(String mimeType)
Gets the corresponding MediaMimeType of specified one as string. |
List<String> |
getExtensions()
Gets supported extensions. |
String |
getMimeType()
Gets the mime type as string. |
String |
getName()
Gets the name (useful for JSTL use) |
boolean |
isIPTCCompliant()
Indicates if from the mime type can be read IPTC metadata. |
boolean |
isPreviewablePhoto()
Indicates if the mime type is one of photo and if it is previewable. |
boolean |
isReadablePhoto()
Indicates if the mime type is a photo one and if it is readable by ImageIo. |
boolean |
isSupportedPhotoType()
Indicates if the mime type is one of handled photo types. |
boolean |
isSupportedSoundType()
Indicates if the mime type is one of handled photo types. |
boolean |
isSupportedVideoType()
Indicates if the mime type is one of handled photo types. |
static MediaMimeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MediaMimeType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MediaMimeType BMP
public static final MediaMimeType GIF
public static final MediaMimeType PNG
public static final MediaMimeType JPG
public static final MediaMimeType TIFF
public static final MediaMimeType MOV
public static final MediaMimeType MP4
public static final MediaMimeType FLV
public static final MediaMimeType MP3
public static final MediaMimeType ERROR
Field Detail |
---|
public static final Set<MediaMimeType> PHOTOS
public static final Set<MediaMimeType> VIDEOS
public static final Set<MediaMimeType> SOUNDS
Method Detail |
---|
public static MediaMimeType[] values()
for (MediaMimeType c : MediaMimeType.values()) System.out.println(c);
public static MediaMimeType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static MediaMimeType fromFile(File file)
MediaMimeType
file
-
MediaMimeType
public static MediaMimeType fromMimeType(String mimeType)
MediaMimeType
of specified one as string.
mimeType
-
MediaMimeType
public String getName()
public String getMimeType()
public List<String> getExtensions()
public boolean isSupportedPhotoType()
public boolean isSupportedVideoType()
public boolean isSupportedSoundType()
public boolean isReadablePhoto()
http://docs.oracle.com/javase/6/docs/api/javax/imageio/package-summary.html
public boolean isPreviewablePhoto()
public boolean isIPTCCompliant()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |