Package | Description |
---|---|
javax.websocket |
This package contains all the WebSocket APIs common to both the client and server side.
|
org.glassfish.tyrus.core.coder |
Encoder and decoder adapters and built-in implementations.
|
Modifier and Type | Method and Description |
---|---|
T |
Decoder.Binary.decode(ByteBuffer bytes)
Decode the given bytes into an object of type T.
|
T |
Decoder.BinaryStream.decode(InputStream is)
Decode the given bytes read from the input stream into an object of type T.
|
T |
Decoder.TextStream.decode(Reader reader)
Reads the websocket message from the implementation provided Reader and decodes it into an instance of the
supplied object type.
|
T |
Decoder.Text.decode(String s)
Decode the given String into an object of type T.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
NoOpByteBufferCoder.decode(ByteBuffer bytes) |
byte[] |
NoOpByteArrayCoder.decode(ByteBuffer bytes) |
InputStream |
InputStreamDecoder.decode(ByteBuffer bytes) |
Reader |
ReaderDecoder.decode(String s) |
Boolean |
PrimitiveDecoders.BooleanDecoder.decode(String s) |
Byte |
PrimitiveDecoders.ByteDecoder.decode(String s) |
Character |
PrimitiveDecoders.CharacterDecoder.decode(String s) |
Double |
PrimitiveDecoders.DoubleDecoder.decode(String s) |
Float |
PrimitiveDecoders.FloatDecoder.decode(String s) |
Integer |
PrimitiveDecoders.IntegerDecoder.decode(String s) |
Long |
PrimitiveDecoders.LongDecoder.decode(String s) |
Short |
PrimitiveDecoders.ShortDecoder.decode(String s) |
String |
NoOpTextCoder.decode(String s) |
Copyright © 2012–2019 Oracle Corporation. All rights reserved.