java.lang.Object
org.eclipse.jetty.websocket.jakarta.common.encoders.AbstractEncoder
org.eclipse.jetty.websocket.jakarta.common.encoders.IntegerEncoder
All Implemented Interfaces:
jakarta.websocket.Encoder, jakarta.websocket.Encoder.Text<Integer>

public class IntegerEncoder extends AbstractEncoder implements jakarta.websocket.Encoder.Text<Integer>
Default encoder for Integer to Encoder.Text Message encoder
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    encode(Integer object)
     

    Methods inherited from class org.eclipse.jetty.websocket.jakarta.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 jakarta.websocket.Encoder

    destroy, init
  • Constructor Details

    • IntegerEncoder

      public IntegerEncoder()
  • Method Details

    • encode

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