Package org.pentaho.reporting.engine.classic.core.modules.parser.extwriter

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportConverter


    ClassicEngineBoot.getInstance().start();
  }

  public void testConvertReport() throws Exception
  {
    final ReportConverter rc = new ReportConverter();
    XmlDemoHandler[] handlers = FunctionalityTestLib.getAllXmlDemoHandlers();
    for (int i = 0; i < handlers.length; i++)
    {
      XmlDemoHandler handler = handlers[i];
      final URL url = handler.getReportDefinitionSource();
      assertNotNull("Failed to locate " + url, url);

      final ByteArrayOutputStream bo = new ByteArrayOutputStream();
      try
      {
        rc.convertReport(url, url,
            new OutputStreamWriter (bo, "UTF-16"), "UTF-16");
        final byte[] buf = bo.toByteArray();
        final String s = new String(buf, "UTF-16");
        final ByteArrayInputStream bin = new ByteArrayInputStream(buf);
        ReportGenerator.getInstance().parseReport(new InputSource(bin), url);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.