Java wrapper is adapted for cv::String