Interface Encoder.BinaryStream<T>
- Type Parameters:
T- The type of object accepted by the encoder
- All Superinterfaces:
Encoder
- Enclosing interface:
Encoder
An encoder that encodes an object of type T into a binary WebSocket message written to
an
OutputStream.-
Nested Class Summary
Nested classes/interfaces inherited from interface Encoder
Encoder.Binary<T>, Encoder.BinaryStream<T>, Encoder.Text<T>, Encoder.TextStream<T> -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(T object, OutputStream os) Encodes the given object and writes the result to the output stream.
-
Method Details
-
encode
Encodes the given object and writes the result to the output stream.- Parameters:
object- The object to encodeos- The output stream to write the encoded data to- Throws:
EncodeException- If the object cannot be encodedIOException- If an I/O error occurs
-