question: public static void toJasperReport ( Grid grid , Map < String , Object > params , OutputStream out ) throws Exception { if ( grid == null ) { return ; } final StringWriter writer = new StringWriter ( ) ; render ( grid , params , writer , JASPER_TEMPLATE ) ; String report = writer . toString ( ) ; JasperReport jasperReport = JasperCompileManager . compileReport ( IOUtils . toInputStream ( report , StandardCharsets . UTF_8 ) ) ; JasperPrint print = JasperFillManager . fillReport ( jasperReport , params , grid ) ; JasperExportManager . exportReportToPdfStream ( print , out ) ; }
target:  Writes a Jasper Reports representation of the given Grid to the given OutputStream.