Examples of NoCloseOutputStream


Examples of org.pentaho.reporting.engine.classic.core.util.NoCloseOutputStream

      document = new Document(pageSize, marginLeft, marginRight, marginTop, marginBottom);
      imageCache = new RTFImageCache(resourceManager);

      // rtf does not support PageFormats or other meta data...
      final PatchRtfWriter2 instance = PatchRtfWriter2.getInstance(document, new NoCloseOutputStream(outputStream));
      instance.getDocumentSettings().setAlwaysUseUnicode(true);

      final String author = config.getConfigProperty
          ("org.pentaho.reporting.engine.classic.core.modules.output.table.rtf.Author");
      if (author != null)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.NoCloseOutputStream

  public void write (final OutputStream outputStream,
                     final ElementStyleDefinition styleDefinition) throws IOException
  {
    final DefaultTagDescription tagDescription = BundleWriterHandlerRegistry.getInstance().createWriterTagDescription();
    final XmlWriter writer = new XmlWriter(new OutputStreamWriter(new NoCloseOutputStream(outputStream), "UTF-8"), tagDescription, "  ", "\n");
    writer.writeXmlDeclaration("UTF-8");

    final AttributeList rootAttributes = new AttributeList();
    rootAttributes.addNamespaceDeclaration("", BundleNamespaces.STYLE);
    rootAttributes.addNamespaceDeclaration("layout", BundleNamespaces.LAYOUT);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.NoCloseOutputStream

    if (fileName == null)
    {
      throw new NullPointerException();
    }

    final StreamRepository streamRepository = new StreamRepository(new NoCloseOutputStream(outputStream));
    final ContentLocation targetRoot = streamRepository.getRoot();

    task.setBodyContentLocation(targetRoot);
    task.setBodyNameGenerator(new DefaultNameGenerator(targetRoot, fileName, suffix));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.