larksuite-oapi/src/main/java/com/larksuite/oapi/okio1_17/Okio.java
public static Source source(Socket socket) throws IOException {
    if (socket == null) throw new IllegalArgumentException("socket == null");
    if (socket.getInputStream() == null) throw new IOException("socket's input stream == null");
    AsyncTimeout timeout = timeout(socket);
    Source source = source(socket.getInputStream(), timeout);
    return timeout.source(source);
  }
/**
   * Returns a source that reads from {@code socket}. Prefer this over {@link
   * #source(InputStream)} because this method honors timeouts. When the socket
   * read times out, the socket is asynchronously closed by a watchdog thread.
   */
Returns a source that reads from  socket. Prefer this over {@link
#source(InputStream)} because this method honors timeouts. When the socket
read times out, the socket is asynchronously closed by a watchdog thread.
Returns a source that reads from socket . Prefer this over { @link #source ( InputStream ) } because this method honors timeouts . When the socket read times out the socket is asynchronously closed by a watchdog thread .
public static Source source(Socket socket) throws IOException {
    if (socket == null) throw new IllegalArgumentException("socket == null");
    if (socket.getInputStream() == null) throw new IOException("socket's input stream == null");
    AsyncTimeout timeout = timeout(socket);
    Source source = source(socket.getInputStream(), timeout);
    return timeout.source(source);
  }
public static Source source ( Socket socket ) throws IOException { if ( socket == null ) throw new IllegalArgumentException ( "socket == null" ) ; if ( socket . getInputStream ( ) == null ) throw new IOException ( "socket's input stream == null" ) ; AsyncTimeout timeout = timeout ( socket ) ; Source source = source ( socket . getInputStream ( ) , timeout ) ; return timeout . source ( source ) ; }
Returns a source that reads from {@code socket}.
Returns a source that reads from { @code socket } .