Is your feature request related to a problem? Please describe.
The ReportService at the moment creates a BufferedOutputStream that it hands to the reports. It would be better to let the report implementations decide. Also using a PrintStream on top of that might have a performance penalty (measure before and after!) compared to using a PrintWriter.
Describe the solution you'd like
- Move construction of buffering to reports.
- Compare current
PrintStream with PrintWriter performance.
Describe alternatives you've considered
Not using a BufferedOutputStream at all will be too inefficient.
Is your feature request related to a problem? Please describe.
The
ReportServiceat the moment creates aBufferedOutputStreamthat it hands to the reports. It would be better to let the report implementations decide. Also using aPrintStreamon top of that might have a performance penalty (measure before and after!) compared to using aPrintWriter.Describe the solution you'd like
PrintStreamwithPrintWriterperformance.Describe alternatives you've considered
Not using a
BufferedOutputStreamat all will be too inefficient.