-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.websocket.Encoder
Encoder.Binary<T>, Encoder.BinaryStream<T>, Encoder.Text<T>, Encoder.TextStream<T> -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(T object, OutputStream os) Encode the given object into a binary stream written to the implementation provided OutputStream.
-
Method Details
-
encode
Encode the given object into a binary stream written to the implementation provided OutputStream.- Parameters:
object- the object being encoded.os- the output stream where the encoded data is written.- Throws:
EncodeException- The provided object could not be encoded to an output streamIOException- If an error occurred writing to the output stream
-