java.lang.Object
org.eclipse.jetty.websocket.javax.common.encoders.AbstractEncoder
org.eclipse.jetty.websocket.javax.common.encoders.DoubleEncoder
All Implemented Interfaces:
javax.websocket.Encoder, javax.websocket.Encoder.Text<Double>

public class DoubleEncoder extends AbstractEncoder implements javax.websocket.Encoder.Text<Double>
Default encoder for Double to Encoder.Text Message encoder
  • Nested Class Summary

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

    javax.websocket.Encoder.Binary<T extends Object>, javax.websocket.Encoder.BinaryStream<T extends Object>, javax.websocket.Encoder.Text<T extends Object>, javax.websocket.Encoder.TextStream<T extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    encode(Double object)
     

    Methods inherited from class org.eclipse.jetty.websocket.javax.common.encoders.AbstractEncoder

    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.Encoder

    destroy, init
  • Constructor Details

    • DoubleEncoder

      public DoubleEncoder()
  • Method Details

    • encode

      public String encode(Double object) throws javax.websocket.EncodeException
      Specified by:
      encode in interface javax.websocket.Encoder.Text<Double>
      Throws:
      javax.websocket.EncodeException