Enum Constant and Description |
---|
GIF1
GIF format with maximum 1 MB size.
|
GIF2
GIF format with maximum 2 MB size.
|
GIF5
GIF format with maximum 5 MB size.
|
MP4
Mobile optimized MP4 format.
|
POSTER
Poster image for gfycat.
|
TRANSPARENT_POSTER
Transparent poster image for gfycat.
|
WEBP
Animated WEBP image.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMimeType() |
java.lang.String |
getName()
Same as
Enum.name() but safe from proguard. |
long |
getSizeHint()
File type possible size hint in bytes.
|
java.lang.String |
getUrl(Gfycat gfycat) |
boolean |
isVideo() |
static MediaType |
posterType(Gfycat gfycat) |
static MediaType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MediaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaType MP4
public static final MediaType GIF1
public static final MediaType GIF2
public static final MediaType GIF5
public static final MediaType WEBP
public static final MediaType TRANSPARENT_POSTER
public static final MediaType POSTER
public static MediaType[] values()
for (MediaType c : MediaType.values()) System.out.println(c);
public static MediaType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getUrl(Gfycat gfycat)
public long getSizeHint()
public boolean isVideo()
public java.lang.String getName()
Enum.name()
but safe from proguard.public java.lang.String getMimeType()