Class ByteEncoder

  • All Implemented Interfaces:
    javax.websocket.Encoder, javax.websocket.Encoder.Text<java.lang.Byte>

    public class ByteEncoder
    extends AbstractEncoder
    implements javax.websocket.Encoder.Text<java.lang.Byte>
    Default encoder for Byte to Encoder.Text Message encoder
    • Nested Class Summary

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

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

      Constructors 
      Constructor Description
      ByteEncoder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String encode​(java.lang.Byte object)  
      • 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 Detail

      • ByteEncoder

        public ByteEncoder()
    • Method Detail

      • encode

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