public static <T extends Enum<T>> T readEnum8(ClickHouseInputStream input, Class<T> enumType) throws IOException {
        return toEnum(readEnum8(input), enumType);
    }
Read enum value from given input stream.

@param <T>      enum type
@param input    non-null input stream
@param enumType enum class
@return enum value
@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