java.lang.Object
org.eclipse.jetty.websocket.javax.common.decoders.AbstractDecoder
org.eclipse.jetty.websocket.javax.common.decoders.LongDecoder
All Implemented Interfaces:
javax.websocket.Decoder, javax.websocket.Decoder.Text<Long>

public class LongDecoder extends AbstractDecoder implements javax.websocket.Decoder.Text<Long>
Default implementation of the Text Message to Long decoder
  • Nested Class Summary

    Nested classes/interfaces inherited from interface javax.websocket.Decoder

    javax.websocket.Decoder.Binary<T extends Object>, javax.websocket.Decoder.BinaryStream<T extends Object>, javax.websocket.Decoder.Text<T extends Object>, javax.websocket.Decoder.TextStream<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final LongDecoder
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     

    Methods inherited from class org.eclipse.jetty.websocket.javax.common.decoders.AbstractDecoder

    destroy, init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface javax.websocket.Decoder

    destroy, init
  • Field Details

  • Constructor Details

    • LongDecoder

      public LongDecoder()
  • Method Details

    • decode

      public Long decode(String s) throws javax.websocket.DecodeException
      Specified by:
      decode in interface javax.websocket.Decoder.Text<Long>
      Throws:
      javax.websocket.DecodeException
    • willDecode

      public boolean willDecode(String s)
      Specified by:
      willDecode in interface javax.websocket.Decoder.Text<Long>