Top Inners Methods
jakarta.websocket

public Interface Decoder

Known Direct Subinterfaces
jakarta.websocket.Decoder.Binary, jakarta.websocket.Decoder.BinaryStream, jakarta.websocket.Decoder.Text, jakarta.websocket.Decoder.TextStream
Imports
java.io.IOException, .InputStream, .Reader, java.nio.ByteBuffer

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
public static interface
public static interface
public static interface

Method Summary

Modifier and TypeMethod and Description
public default void
destroy()

Destroy the decoder.

public default void
init(EndpointConfig
The end-point configuration
endpointConfig
)

Initialise the decoder.

Method Detail

destroyback to summary
public default void destroy()

Destroy the decoder. The default implementation is a NO-OP.

initback to summary
public default void init(EndpointConfig endpointConfig)

Initialise the decoder. The default implementation is a NO-OP.

Parameters
endpointConfig:EndpointConfig

The end-point configuration

jakarta.websocket back to summary

public Interface Decoder.Binary<T>

extends Decoder

Method Summary

Modifier and TypeMethod and Description
public T
public boolean
Inherited from jakarta.websocket.Decoder:
destroyinit

Method Detail

decodeback to summary
public T decode(ByteBuffer bytes) throws DecodeException
willDecodeback to summary
public boolean willDecode(ByteBuffer bytes)
jakarta.websocket back to summary

public Interface Decoder.BinaryStream<T>

extends Decoder

Method Summary

Modifier and TypeMethod and Description
public T
Inherited from jakarta.websocket.Decoder:
destroyinit

Method Detail

decodeback to summary
public T decode(InputStream is) throws DecodeException, IOException
jakarta.websocket back to summary

public Interface Decoder.Text<T>

extends Decoder

Method Summary

Modifier and TypeMethod and Description
public T
public boolean
Inherited from jakarta.websocket.Decoder:
destroyinit

Method Detail

decodeback to summary
public T decode(String s) throws DecodeException
willDecodeback to summary
public boolean willDecode(String s)
jakarta.websocket back to summary

public Interface Decoder.TextStream<T>

extends Decoder

Method Summary

Modifier and TypeMethod and Description
public T
decode(Reader reader)

Inherited from jakarta.websocket.Decoder:
destroyinit

Method Detail

decodeback to summary
public T decode(Reader reader) throws DecodeException, IOException