Package | Description |
---|---|
jakarta.websocket |
This package contains all the Jakartq WebSocket APIs common to both the client and server side.
|
org.glassfish.tyrus.core |
Core classes.
|
org.glassfish.tyrus.core.coder |
Encoder and decoder adapters and built-in implementations.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
Encoder.Text.encode(T object)
Encode the given object into a String.
|
java.nio.ByteBuffer |
Encoder.Binary.encode(T object)
Encode the given object into a byte array.
|
void |
Encoder.BinaryStream.encode(T object,
java.io.OutputStream os)
Encode the given object into a binary stream written to the implementation provided OutputStream.
|
void |
Encoder.TextStream.encode(T object,
java.io.Writer writer)
Encode the given object to a character stream writing it to the supplied Writer.
|
void |
RemoteEndpoint.Basic.sendObject(java.lang.Object data)
Sends a custom developer object, blocking until it has been transmitted.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
TyrusEndpointWrapper.doEncode(Session session,
java.lang.Object message) |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
NoOpByteArrayCoder.encode(byte[] object) |
java.nio.ByteBuffer |
NoOpByteBufferCoder.encode(java.nio.ByteBuffer object) |
java.lang.String |
ToStringEncoder.encode(java.lang.Object object) |
java.lang.String |
NoOpTextCoder.encode(java.lang.String object) |
Copyright © 2012–2020 Oracle Corporation. All rights reserved.