Package | Description |
---|---|
javax.websocket |
This package contains all the WebSocket APIs common to both the client
and server side.
|
Modifier and Type | Method and Description |
---|---|
String |
Encoder.Text.encode(T object)
Encode the given object into a String.
|
ByteBuffer |
Encoder.Binary.encode(T object)
Encode the given object into a byte array.
|
void |
Encoder.BinaryStream.encode(T object,
OutputStream os)
Encode the given object into a binary stream written to the
implementation provided OutputStream.
|
void |
Encoder.TextStream.encode(T object,
Writer writer)
Encode the given object to a character stream writing it
to the supplied Writer.
|
void |
RemoteEndpoint.Basic.sendObject(Object data)
Sends a custom developer object, blocking until it has been transmitted.
|
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.