JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
javax.websocket

Interface Decoder.Binary<T>

  • All Superinterfaces:
    Decoder
    Enclosing interface:
    Decoder


    public static interface Decoder.Binary<T>
    extends Decoder 
    This interface defines how a custom object (of type T) is decoded from a web socket message in the form of a byte buffer.
    • Method Detail

      • decode

        T decode(ByteBuffer bytes)
         throws DecodeException 
        Decode the given bytes into an object of type T.
        Parameters:
        bytes - the bytes to be decoded.
        Returns:
        the decoded object.
        Throws:
        DecodeException
      • willDecode

        boolean willDecode(ByteBuffer bytes)
        Answer whether the given bytes can be decoded into an object of type T.
        Parameters:
        bytes - the bytes to be decoded.
        Returns:
        whether or not the bytes can be decoded by this decoder.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

Copyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.

AltStyle によって変換されたページ (->オリジナル) /