javax.websocket
Interface Encoder.BinaryStream<T>

Type Parameters:
T - the type of the object this encoder can encode.
All Superinterfaces:
Encoder
Enclosing interface:
Encoder

public static interface Encoder.BinaryStream<T>
extends Encoder

This interface may be implemented by encoding algorithms that want to write the encoded object to a binary stream.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.websocket.Encoder
Encoder.Binary<T>, Encoder.BinaryStream<T>, Encoder.Text<T>, Encoder.TextStream<T>
 
Method Summary
 void encode(T object, OutputStream os)
          Encode the given object into a binary stream written to the implementation provided OutputStream.
 
Methods inherited from interface javax.websocket.Encoder
destroy, init
 

Method Detail

encode

void encode(T object,
            OutputStream os)
            throws EncodeException,
                   IOException
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
IOException


Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : [email protected]