Module swim.ws
Package swim.ws

Class WsFragment<T>

  • All Implemented Interfaces:
    swim.codec.Debug

    public final class WsFragment<T>
    extends WsFrame<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>
      • contentDecoder

        public swim.codec.Decoder<T> contentDecoder()
      • debug

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

        public static <T> WsFragment<T> from​(WsOpcode opcode,
                                             swim.codec.Decoder<T> content)