public enum SFBinaryFormat extends Enum<SFBinaryFormat>
| Modifier and Type | Field and Description |
|---|---|
static SFBinaryFormat |
DEFAULT
The default binary format.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
format(SFBinary binary)
Format a binary value as a string.
|
static SFBinaryFormat |
getFormat(String name)
Looks up a binary format by case-insensitive name.
|
static SFBinaryFormat |
getSafeOutputFormat(String name)
Looks up a binary format suitable for text output.
|
abstract SFBinary |
parse(String string)
Parse a binary value as a string.
|
static SFBinaryFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SFBinaryFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SFBinaryFormat HEX
public static final SFBinaryFormat BASE64
public static final SFBinaryFormat UTF8
public static final SFBinaryFormat DEFAULT
public static SFBinaryFormat[] values()
for (SFBinaryFormat c : SFBinaryFormat.values()) System.out.println(c);
public static SFBinaryFormat 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 abstract String format(SFBinary binary)
binary - SFBinaryIllegalArgumentException - if the binary cannot be formatted.public abstract SFBinary parse(String string)
string - a stringIllegalArgumentException - if the string cannot be parsed.public static SFBinaryFormat getFormat(String name)
name - binary formatIllegalArgumentException - if the name is invalid.public static SFBinaryFormat getSafeOutputFormat(String name)
name - binary formatIllegalArgumentException - if the name is invalid.Copyright © 2020. All rights reserved.