/** * Constructs a new publish report decorating the provided report.<p> * * @param report the report to decorate */ private CmsPublishReport(I_CmsReport report) { this(new ByteArrayOutputStream(), report.getLocale()); m_report = report; if (report instanceof CmsHtmlReport) { if (((CmsHtmlReport)report).isWriteHtml()) { try { m_outputStream.write(CmsStringUtil.substitute(getReportUpdate(), "\\n", "").getBytes()); } catch (IOException e) { // ignore } } } }
/** * Constructs a new publish report decorating the provided report.<p> * * @param report the report to decorate */ private CmsPublishReport(I_CmsReport report) { this(new ByteArrayOutputStream(), report.getLocale()); m_report = report; if (report instanceof CmsHtmlReport) { if (((CmsHtmlReport)report).isWriteHtml()) { try { m_outputStream.write(CmsStringUtil.substitute(getReportUpdate(), "\\n", "").getBytes()); } catch (IOException e) { // ignore } } } }