Module bus.http

Class RealWebSocket.Streams

java.lang.Object
org.miaixz.bus.http.socket.RealWebSocket.Streams
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
RealWebSocket

public abstract static class RealWebSocket.Streams extends Object implements Closeable
A holder for the sink and source of a WebSocket connection.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
    True if this is a client stream.
    final org.miaixz.bus.core.io.sink.BufferSink
    The sink for writing outgoing data.
    final org.miaixz.bus.core.io.source.BufferSource
    The source for reading incoming data.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Streams(boolean client, org.miaixz.bus.core.io.source.BufferSource source, org.miaixz.bus.core.io.sink.BufferSink sink)
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.io.Closeable

    close
  • Field Details

    • client

      public final boolean client
      True if this is a client stream.
    • source

      public final org.miaixz.bus.core.io.source.BufferSource source
      The source for reading incoming data.
    • sink

      public final org.miaixz.bus.core.io.sink.BufferSink sink
      The sink for writing outgoing data.
  • Constructor Details

    • Streams

      public Streams(boolean client, org.miaixz.bus.core.io.source.BufferSource source, org.miaixz.bus.core.io.sink.BufferSink sink)