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

Interface Decoder.Text<T>

  • All Superinterfaces:
    Decoder
    Enclosing interface:
    Decoder


    public static interface Decoder.Text<T>
    extends Decoder 
    This interface defines how a custom object is decoded from a web socket message in the form of a string.
    • Method Detail

      • decode

        T decode(String s)
         throws DecodeException 
        Decode the given String into an object of type T.
        Parameters:
        s - string to be decoded.
        Returns:
        the decoded message as an object of type T
        Throws:
        DecodeException
      • willDecode

        boolean willDecode(String s)
        Answer whether the given String can be decoded into an object of type T.
        Parameters:
        s - the string being tested for decodability.
        Returns:
        whether this decoder can decoded the supplied string.
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 によって変換されたページ (->オリジナル) /