Class SalesReportGenerator
java.lang.Object
team75.model.SalesReportGenerator
Generates a PDF sales summary report.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]generate(DB.SalesSummary summary, Timestamp start, Timestamp end) Generates the report and returns the raw PDF bytes, ready to be written to a file or streamed as an HTTP response.
-
Constructor Details
-
SalesReportGenerator
public SalesReportGenerator()This class should never be initialized
-
-
Method Details
-
generate
Generates the report and returns the raw PDF bytes, ready to be written to a file or streamed as an HTTP response.- Parameters:
summary- the aggregated sales datastart- report period start (inclusive)end- report period end (inclusive)- Returns:
- PDF bytes
- Throws:
IOException
-