Module swim.ws
Package swim.ws

Class WsText<T>

  • All Implemented Interfaces:
    swim.codec.Debug

    public final class WsText<T>
    extends WsData<T>
    implements swim.codec.Debug
    • Method Detail

      • isDefined

        public boolean isDefined()
        Specified by:
        isDefined in class WsFrame<T>
      • get

        public T get()
        Specified by:
        get in class WsFrame<T>
      • encodeContent

        public swim.codec.Encoder<?,​?> encodeContent​(swim.codec.OutputBuffer<?> output,
                                                           WsEncoder ws)
        Specified by:
        encodeContent in class WsFrame<T>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • debug

        public void debug​(swim.codec.Output<?> output)
        Specified by:
        debug in interface swim.codec.Debug
      • from

        public static <T> WsText<T> from​(T value,
                                         swim.codec.Encoder<?,​?> content)
      • from

        public static <T> WsText<T> from​(swim.codec.Encoder<?,​?> content)