larksuite-oapi/src/main/java/com/larksuite/oapi/okio1_17/Okio.java
public static Sink sink(Socket socket) throws IOException {
    if (socket == null) throw new IllegalArgumentException("socket == null");
    if (socket.getOutputStream() == null) throw new IOException("socket's output stream == null");
    AsyncTimeout timeout = timeout(socket);
    Sink sink = sink(socket.getOutputStream(), timeout);
    return timeout.sink(sink);
  }
/**
   * Returns a sink that writes to {@code socket}. Prefer this over {@link
   * #sink(OutputStream)} because this method honors timeouts. When the socket
   * write times out, the socket is asynchronously closed by a watchdog thread.
   */
Returns a sink that writes to  socket. Prefer this over {@link
#sink(OutputStream)} because this method honors timeouts. When the socket
write times out, the socket is asynchronously closed by a watchdog thread.
Returns a sink that writes to socket . Prefer this over { @link #sink ( OutputStream ) } because this method honors timeouts . When the socket write times out the socket is asynchronously closed by a watchdog thread .
public static Sink sink(Socket socket) throws IOException {
    if (socket == null) throw new IllegalArgumentException("socket == null");
    if (socket.getOutputStream() == null) throw new IOException("socket's output stream == null");
    AsyncTimeout timeout = timeout(socket);
    Sink sink = sink(socket.getOutputStream(), timeout);
    return timeout.sink(sink);
  }
public static Sink sink ( Socket socket ) throws IOException { if ( socket == null ) throw new IllegalArgumentException ( "socket == null" ) ; if ( socket . getOutputStream ( ) == null ) throw new IOException ( "socket's output stream == null" ) ; AsyncTimeout timeout = timeout ( socket ) ; Sink sink = sink ( socket . getOutputStream ( ) , timeout ) ; return timeout . sink ( sink ) ; }
Returns a sink that writes to {@code socket}.
Returns a sink that writes to { @code socket } .