com.aspose.cad.jasperreports.config

Class ASBatchExporterOutputImpl

  • java.lang.Object
    • net.sf.jasperreports.export.SimpleOutputStreamExporterOutput
      • com.aspose.cad.jasperreports.config.ASBatchExporterOutputImpl
  • All Implemented Interfaces:
    ASBatchExporterOutput, net.sf.jasperreports.export.ExporterOutput, net.sf.jasperreports.export.OutputStreamExporterOutput


    public class ASBatchExporterOutputImpl
    extends net.sf.jasperreports.export.SimpleOutputStreamExporterOutput
    implements ASBatchExporterOutput
    Batch export output configuration for export of each page of a document separately.
    • Constructor Detail

      • ASBatchExporterOutputImpl

        public ASBatchExporterOutputImpl(OutputStream outputStream)
        Creates a ASBatchExporterOutputImpl instance that puts the zip archive output into provided java.io.OutputStream object. This is useful for sending the export result to an output stream, such as a ServletOutputStream.
      • ASBatchExporterOutputImpl

        public ASBatchExporterOutputImpl(OutputStream outputStream,
                                         String batchImageExportPrefix)
        Creates a ASBatchExporterOutputImpl instance that puts the zip archive output into provided java.io.OutputStream object. This is useful for sending the export result to an output stream, such as a ServletOutputStream.
      • ASBatchExporterOutputImpl

        public ASBatchExporterOutputImpl(File zipFile)
        Creates a ASBatchExporterOutputImpl instance that puts the zip archive output into the provided java.io.File object. This is useful when exporting to a file and the File instance is already there.
      • ASBatchExporterOutputImpl

        public ASBatchExporterOutputImpl(File zipFile,
                                         String batchImageExportPrefix)
        Creates a ASBatchExporterOutputImpl instance that puts the zip archive output into the provided java.io.File object. This is useful when exporting to a file and the File instance is already there.
      • ASBatchExporterOutputImpl

        public ASBatchExporterOutputImpl(String batchExportPath)
        Creates a ASBatchExporterOutputImpl instance that puts batch files into the directory designated by the provided file name.
        Parameters:
        batchExportPath - the batch export path
      • ASBatchExporterOutputImpl

        public ASBatchExporterOutputImpl(String batchExportPath,
                                         String batchImageExportPrefix)
        Creates a ASBatchExporterOutputImpl instance that puts batch files into the directory designated by the provided file name.
        Parameters:
        batchExportPath - the batch export path
        batchImageExportPrefix - the prefix of the exported batch files.
    • Method Detail

      • setBatchExportPath

        public void setBatchExportPath(String batchExportPath)
        Sets batch export path. The default value is "page_".
        Parameters:
        batchExportPath - the batch export path
        Throws:
        com.aspose.ms.System.IO.IOException - if the directory doesn't exist
      • getBatchImageExportPrefix

        public String getBatchImageExportPrefix()

        Gets the prefix of the exported batch files

        Value: true if multipage export; otherwise, false.
        Specified by:
        getBatchImageExportPrefix in interface ASBatchExporterOutput
        Returns:
        the batch image export prefix
      • setBatchImageExportPrefix

        public void setBatchImageExportPrefix(String batchPrefix)
        Sets batch image export prefix.
        Parameters:
        batchPrefix - the batch image export prefix
      • isZipArchive

        public boolean isZipArchive()
        Description copied from interface: ASBatchExporterOutput
        Indicates whether the export output will be put in zip archive
        Specified by:
        isZipArchive in interface ASBatchExporterOutput
        Returns:
        true if output will be as zip archive, otherwise false