public enum MultiPartContentType extends Enum<MultiPartContentType>
| Enum Constant and Description |
|---|
IMAGE_PNG |
| Modifier and Type | Method and Description |
|---|---|
static MultiPartContentType |
forExtension(String extension) |
String |
getContentType() |
String |
getExtension() |
static MultiPartContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MultiPartContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MultiPartContentType IMAGE_PNG
public static MultiPartContentType[] values()
for (MultiPartContentType c : MultiPartContentType.values()) System.out.println(c);
public static MultiPartContentType 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 static MultiPartContentType forExtension(String extension)
public String getExtension()
public String getContentType()
Copyright © 2018. All rights reserved.