javax.websocket
Interface Decoder.BinaryStream<T>
- All Superinterfaces:
- Decoder
- Enclosing interface:
- Decoder
public static interface Decoder.BinaryStream<T>
- extends Decoder
This interface defines how a custom object is decoded from a web socket message in
the form of a binary stream.
Method Summary |
T |
decode(InputStream is)
Decode the given bytes read from the input stream into an object of type T. |
decode
T decode(InputStream is)
throws DecodeException,
IOException
- Decode the given bytes read from the input stream into an object of type T.
- Parameters:
is
- the input stream carrying the bytes.
- Returns:
- the decoded object.
- Throws:
DecodeException
IOException
Copyright © 2012-2013 Oracle and/or its affiliates. All rights reserved.