Class CommonImageFormat
java.lang.Object
de.xima.fc.prompt.service.support.CommonImageFormat
Enumeration for common types of image formats. Certain task types such as speech synthesis produce image files. Some
prompt services allow the user to select the format of that image file. Implementations are encouraged to use these
constants to increase interoperability between different prompt service implementations, but are not required to do
so.
- Since:
- 8.5.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Bitmap Image File format, commonly known as "bmp".static final StringThe Graphics Interchange Format, commonly known as "gif".static final StringThe High Efficiency Image File Format, commonly known as "heif".static final StringThe Joint Photographic Experts Group format, commonly known as "jpeg".static final StringThe Joint Photographic Experts Group 2000 format, commonly known as "jpeg2000".static final StringThe Portable Network Graphics format, commonly known as "png".static final StringThe Tagged Image File Format, commonly known as "tiff".static final StringThe Web Picture image format, commonly known as "webp". -
Method Summary
Modifier and TypeMethodDescriptionstatic StringlocalizedDescription(Locale locale, String commonImageFormat) Gets the localized description for the given common image format.static StringlocalizedLabel(Locale locale, String commonImageFormat) Gets the localized label for the given common image format.static StringGets the mime type for the given common image format.
-
Field Details
-
BITMAP_IMAGE_FILE
The Bitmap Image File format, commonly known as "bmp".- See Also:
-
GRAPHICS_INTERCHANGE_FORMAT
The Graphics Interchange Format, commonly known as "gif".- See Also:
-
HIGH_EFFICIENCY_IMAGE_FILE
The High Efficiency Image File Format, commonly known as "heif".- See Also:
-
JOINT_PHOTOGRAPHIC_EXPERTS_GROUP
The Joint Photographic Experts Group format, commonly known as "jpeg".- See Also:
-
JOINT_PHOTOGRAPHIC_EXPERTS_GROUP_2000
The Joint Photographic Experts Group 2000 format, commonly known as "jpeg2000".- See Also:
-
PORTABLE_NETWORK_GRAPHICS
The Portable Network Graphics format, commonly known as "png".- See Also:
-
TAGGED_IMAGE_FILE_FORMAT
The Tagged Image File Format, commonly known as "tiff".- See Also:
-
WEB_PICTURE
The Web Picture image format, commonly known as "webp".- See Also:
-
-
Method Details
-
localizedDescription
Gets the localized description for the given common image format. The value should be one of the constants defined in this class. When an unknown value is given, returns an implementation-defined default description.- Parameters:
locale- The locale for which to localize the description.commonImageFormat- The common image format constant, must be one of the constants defined in this class.- Returns:
- The localized description for the given common image format.
-
localizedLabel
Gets the localized label for the given common image format. The value should be one of the constants defined in this class. If any other value is given, returns an implementation-defined default label.- Parameters:
locale- The locale for which to localize the label.commonImageFormat- The common image format constant, must be one of the constants defined in this class.- Returns:
- The localized label for the given common image format.
-
mimeType
Gets the mime type for the given common image format. The value should be one of the constants defined in this class. If any other value is given, returns "application/octet-stream".- Parameters:
imageFormat- The common image format constant, must be one of the constants defined in this class.- Returns:
- The mime type for the given common image format.
-