public boolean isClosed() {
        return closed;
    }
Checks if the input stream has been closed or not.

@return true if the input stream has been closed; false otherwise
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseInputStream.java