public class ImageType extends MediaTypeParameter
Photo
and Logo
properties.
Supported versions: 2.1, 3.0, 4.0
Modifier and Type | Field and Description |
---|---|
static ImageType |
GIF |
static ImageType |
JPEG |
static ImageType |
PNG |
extension, mediaType
value
Modifier and Type | Method and Description |
---|---|
static Collection<ImageType> |
all()
Gets all of the parameter values that are defined as static constants in
this class.
|
static ImageType |
find(String type,
String mediaType,
String extension)
Searches for a parameter value that is defined as a static constant in
this class.
|
static ImageType |
get(String type,
String mediaType,
String extension)
Searches for a parameter value and creates one if it cannot be found.
|
equals, getExtension, getMediaType, hashCode
getValue, toString
public static final ImageType GIF
public static final ImageType JPEG
public static final ImageType PNG
public static ImageType find(String type, String mediaType, String extension)
type
- the TYPE parameter value to search for (e.g. "JPEG") or null
to not search by this valuemediaType
- the media type to search for (e.g. "image/png") or null
to not search by this valueextension
- the file extension to search for (excluding the ".",
e.g. "jpg") or null to not search by this valuepublic static ImageType get(String type, String mediaType, String extension)
==
equality.type
- the TYPE parameter value to search for (e.g. "JPEG") or null
to not search by this valuemediaType
- the media type to search for (e.g. "image/png") or null
to not search by this valueextension
- the file extension to search for (excluding the ".",
e.g. "jpg") or null to not search by this valuepublic static Collection<ImageType> all()
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.