public static String readFixedString(ClickHouseInputStream input, int length, Charset charset) throws IOException {
        return input.readBuffer(length).asString(charset);
    }
Read string with fixed length from given input stream.

@param input   non-null input stream
@param length  byte length of the string
@param charset charset used to convert string to byte array, null means UTF-8
@return string with fixed length
@throws IOException when failed to read value from input stream or reached
                    end of the stream
clickhouse-data/src/main/java/com/clickhouse/data/format/BinaryStreamUtils.java