Class ReportConversionData

java.lang.Object
de.hybris.platform.auditreport.service.ReportConversionData

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

    • ReportConversionData

      @Deprecated(since="1811", forRemoval=true) public ReportConversionData(String name, byte[] data)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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(String name, 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 Details

    • getName

      public String getName()
    • getData

      @Deprecated(since="1811", forRemoval=true) public byte[] getData()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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 InputStream getStream()