public static enum UploadBinary.ContentType extends Enum<UploadBinary.ContentType>
Modifier and Type | Method and Description |
---|---|
String |
getValue()
Returns the string-representation.
|
static UploadBinary.ContentType |
parse(String codedValue)
Parse the coded value (0,1) into the Content-type.
|
static UploadBinary.ContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UploadBinary.ContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UploadBinary.ContentType BINARY
public static final UploadBinary.ContentType TEXT
public static UploadBinary.ContentType[] values()
for (UploadBinary.ContentType c : UploadBinary.ContentType.values()) System.out.println(c);
public static UploadBinary.ContentType 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()
public static UploadBinary.ContentType parse(String codedValue)
codedValue
- B = Binary, T = TextCopyright © 2021. All rights reserved.