Support conversion of inputstream to csv.