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

public Class IntegerEncoder

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

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
encode(Integer
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

IntegerEncoderback to summary
public IntegerEncoder()

Method Detail

encodeback to summary
public String encode(Integer 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:Integer

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