Encoding Class

public final class Encoding
extends ExpandableStringEnum<Encoding>

Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output.

Field Summary

Modifier and Type Field and Description
static final Encoding UTF8

Static value UTF8 for Encoding.

Constructor Summary

Constructor Description
Encoding()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Encoding value.

Method Summary

Modifier and Type Method and Description
static Encoding fromString(String name)

Creates or finds a Encoding from its string representation.

static Collection<Encoding> values()

Gets known Encoding values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

UTF8

public static final Encoding UTF8

Static value UTF8 for Encoding.

Constructor Details

Encoding

@Deprecated
public Encoding()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Encoding value.

Method Details

fromString

public static Encoding fromString(String name)

Creates or finds a Encoding from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding Encoding.

values

public static Collection<Encoding> values()

Gets known Encoding values.

Returns:

known Encoding values.

Applies to