public enum MimeType extends Enum<MimeType>
Modifier and Type | Class and Description |
---|---|
static class |
MimeType.Adapter |
Enum Constant and Description |
---|
APPLICATION_PDF |
TEXT_HTML |
TEXT_PLAIN |
Modifier and Type | Method and Description |
---|---|
static MimeType |
fromValue(String text) |
String |
getValue() |
String |
toString() |
static MimeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MimeType TEXT_PLAIN
public static final MimeType TEXT_HTML
public static final MimeType APPLICATION_PDF
public static MimeType[] values()
for (MimeType c : MimeType.values()) System.out.println(c);
public static MimeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getValue()
Copyright © 2022 Sage Bionetworks. All rights reserved.