public static enum UploadBinary.ContentType extends java.lang.Enum<UploadBinary.ContentType>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue()
Returns the string-representation.
|
static UploadBinary.ContentType |
parse(java.lang.String codedValue)
Parse the coded value (0,1) into the Content-type.
|
static UploadBinary.ContentType |
valueOf(java.lang.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(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 getValue()
public static UploadBinary.ContentType parse(java.lang.String codedValue)
codedValue
- B = Binary, T = Text