javax.net.websocket
Interface Encoder.Binary<T>

Type Parameters:
T -
All Superinterfaces:
Encoder
All Known Implementing Classes:
BinaryEncoderNoOp
Enclosing interface:
Encoder

public static interface Encoder.Binary<T>
extends Encoder

This interface defines how to provide a way to convert a custom object into a binary message.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.net.websocket.Encoder
Encoder.Binary<T>, Encoder.Text<T>
 
Method Summary
 byte[] encode(T object)
          Encode the given object into a byte array.
 

Method Detail

encode

byte[] encode(T object)
              throws EncodeException
Encode the given object into a byte array.

Throws:
EncodeException


Copyright © 2012. All Rights Reserved.