public void send(ClickHouseConfig config, ClickHouseInputStream rawRequest, ClickHouseOutputStream responseStream)
            throws IOException {
        if (rawRequest == null || rawRequest.isClosed()) {
            throw new IllegalArgumentException(ERROR_INVALID_INPUT_STREAM);
        } else if (responseStream == null || responseStream.isClosed()) {
            throw new IllegalArgumentException(ERROR_INVALID_OUTPUT_STREAM);
        }

        processRequest(config, rawRequest, responseStream);
    }
Reads byte from socket input buffer.

@param config non-null configuration
@param sc     socket channel
@param out    output stream
@return true if the read was a success; false otherwise
@throws IOException
clickhouse-client/src/main/java/com/clickhouse/client/AbstractSocketClient.java