Top Description Constructors Methods
org.eclipse.jetty.ee10.websocket.jakarta.common.encoders

public Class DoubleEncoder

extends AbstractEncoder
implements Encoder.Text<Double>
Class Inheritance
All Implemented Interfaces
jakarta.websocket.Encoder.Text, jakarta.websocket.Encoder
Imports
jakarta.websocket.EncodeException, .Encoder

Default encoder for Double to jakarta.websocket.Encoder.Text Message encoder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
encode(Double
the object being encoded.
object
)

Implements jakarta.websocket.Encoder.Text.encode.

Encode the given object into a String.

Inherited from org.eclipse.jetty.ee10.websocket.jakarta.common.encoders.AbstractEncoder:
destroyinit

Constructor Detail

DoubleEncoderback to summary
public DoubleEncoder()

Method Detail

encodeback to summary
public String encode(Double object) throws EncodeException

Implements jakarta.websocket.Encoder.Text.encode.

Doc from jakarta.websocket.Encoder.Text.encode.

Encode the given object into a String.

Parameters
object:Double

the object being encoded.

Returns:String

the encoded object as a string.

Annotations
@Override
Exceptions
EncodeException:
The provided object could not be encoded as a string