Interface Decoder.BinaryStream<T>

  • Type Parameters:
    T - The type of the object that is decoded
    All Superinterfaces:
    Enclosing interface:

    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 Detail

      • decode

        T decode​( is)
          throws DecodeException,
        Decode the given bytes read from the input stream into an object of type T.
        is - the input stream carrying the bytes.
        the decoded object.
        DecodeException - If the provided input stream cannot be decoded to type T - If an error occurs reading the input stream