Serializable, Comparable<DataUrlEncoding>public enum DataUrlEncoding extends Enum<DataUrlEncoding>
DataUrl| Enum Constant | Description |
|---|---|
BASE64 |
Base64 encoded
|
URL |
Url encoded
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getEncodingName() |
Gets the name of the encoding in the data url
|
static DataUrlEncoding |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static DataUrlEncoding |
valueOfEncodingName(String encodingName) |
Gets the matching enum constant of the given enconding
|
static DataUrlEncoding[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataUrlEncoding BASE64
public static final DataUrlEncoding URL
public static DataUrlEncoding[] values()
for (DataUrlEncoding c : DataUrlEncoding.values()) System.out.println(c);
public static DataUrlEncoding 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 getEncodingName()
public static final DataUrlEncoding valueOfEncodingName(String encodingName) throws IllegalArgumentException, NullPointerException
encodingName - Name of the encoding in a data urlIllegalArgumentException - if this enum type has no constant with
the specified encodingNameNullPointerException - if encodingName is nullCopyright © 2018. All rights reserved.