private void reportTraceToStream(final Trace trace, final OutputStream outputStream, final ReportSettings settings) { final Reportable report = createReport(trace, settings); report.renderToStream(outputStream); try { outputStream.flush(); } catch (final IOException exception) { throw new ReportException(exception.getMessage()); } }
private void reportTraceToStream(final Trace trace, final OutputStream outputStream, final ReportSettings settings) { final Reportable report = createReport(trace, settings); report.renderToStream(outputStream); try { outputStream.flush(); } catch (final IOException exception) { throw new ReportException(exception.getMessage()); } }