Package org.pentaho.reporting.libraries.repository

Examples of org.pentaho.reporting.libraries.repository.NameGenerator


    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "application/pdf"));
      final OutputStream outputStream = contentItem.getOutputStream();

      try
      {
        final PdfOutputProcessor outputProcessor = new PdfOutputProcessor(configuration, outputStream);
View Full Code Here


    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "text/plain"));
      final OutputStream outputStream = contentItem.getOutputStream();

      try
      {
        final String cpiText = configuration.getConfigProperty
View Full Code Here

    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "text/xml"));
      final OutputStream outputStream = contentItem.getOutputStream();

      try
      {
        final XmlPageOutputProcessor outputProcessor =
View Full Code Here

    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"));
      final OutputStream outputStream = contentItem.getOutputStream();

      try
      {
        final PageableExcelOutputProcessor outputProcessor =
View Full Code Here

    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "application/rtf"));
      final OutputStream outputStream = contentItem.getOutputStream();

      try
      {
        final FlowRTFOutputProcessor outputProcessor =
View Full Code Here

    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "text/csv"));
      final OutputStream outputStream = contentItem.getOutputStream();

      try
      {
        final StreamCSVOutputProcessor outputProcessor =
View Full Code Here

    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "application/vnd.ms-excel"));
      final OutputStream outputStream = contentItem.getOutputStream();

      try
      {
        final StreamExcelOutputProcessor outputProcessor =
View Full Code Here

    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "application/rtf"));
      final OutputStream outputStream = contentItem.getOutputStream();

      try
      {
        final StreamRTFOutputProcessor outputProcessor =
View Full Code Here

      outputProcessor.setInterceptor(interceptor);
      streamReportProcessor.processReport();
      streamReportProcessor.close();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, mimeType));
      final BufferedImage image = interceptor.getImage();
      final ImageEncoder imageEncoder = ImageEncoderRegistry.getInstance().createEncoder(mimeType);
      final OutputStream outputStream = contentItem.getOutputStream();
      imageEncoder.encodeImage(image, outputStream, quality, alphaChannel);
      outputStream.close();
View Full Code Here

    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();

      final FlowCSVOutputProcessor outputProcessor =
          new FlowCSVOutputProcessor(configuration);
      outputProcessor.setContentLocation(contentLocation);
      outputProcessor.setContentNameGenerator(nameGenerator);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.repository.NameGenerator

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.