Class CommonStatsCSVHelper
java.lang.Object
edu.ucsb.cs156.happiercows.helpers.CommonStatsCSVHelper
- 
Method Summary
Modifier and TypeMethodDescriptionstatic ByteArrayInputStreamtoCSV(Iterable<CommonStats> lines) Convert the given Iterable of CommonStats into a ByteArrayInputStream suitable for CSV export. 
- 
Method Details
- 
toCSV
Convert the given Iterable of CommonStats into a ByteArrayInputStream suitable for CSV export.- Parameters:
 lines- The Iterable collection of CommonStats to be exported.- Returns:
 - A ByteArrayInputStream representation of the CSV data.
 - Throws:
 IOException- if there's an error during CSV generation.
 
 -