Class ReportConversionData


  • public class ReportConversionData
    extends java.lang.Object
    POJO representing a single entry (file) of the converted report.
    • Constructor Summary

      Constructors 
      Constructor Description
      ReportConversionData​(java.lang.String name, byte[] data)
      Deprecated.
      since 1811
      ReportConversionData​(java.lang.String name, java.io.InputStream stream)
      Constructs a new instance.
    • Constructor Detail

      • ReportConversionData

        @Deprecated
        public ReportConversionData​(java.lang.String name,
                                    byte[] data)
        Deprecated.
        since 1811
        Constructs a new instance.
        Parameters:
        name - name of the data portion, usually interpreted as a file name. Should be unique in a single conversion result, otherwise in case of storing the data into a ZIP file only one of the files with the same name will be chosen randomly.
        data - representing the content of the file. When stored in a ZIP file the data will be written directly.
      • ReportConversionData

        public ReportConversionData​(java.lang.String name,
                                    java.io.InputStream stream)
        Constructs a new instance.
        Parameters:
        name - name of the data portion, usually interpreted as a file name. Should be unique in a single conversion result, otherwise in case of storing the data into a ZIP file only one of the files with the same name will be chosen randomly.
        stream - stream representing the content of the file
    • Method Detail

      • getName

        public java.lang.String getName()
      • getData

        @Deprecated
        public byte[] getData()
        Deprecated.
        since 1811
        As the data is always represented as stream, the call to this method reads the stream. In case of subsequent calls it may turn out that the stream was closed already and the call may fail with an exception.
        Returns:
        data as byte table
      • getStream

        public java.io.InputStream getStream()