Class ReportConversionData
java.lang.Object
de.hybris.platform.auditreport.service.ReportConversionData
POJO representing a single entry (file) of the converted report.
-
Constructor Summary
ConstructorsConstructorDescriptionReportConversionData(String name, byte[] data) Deprecated, for removal: This API element is subject to removal in a future version.since 1811ReportConversionData(String name, InputStream stream) Constructs a new instance. -
Method Summary
-
Constructor Details
-
ReportConversionData
Deprecated, for removal: This API element is subject to removal in a future version.since 1811Constructs 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
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
-
getData
Deprecated, for removal: This API element is subject to removal in a future version.since 1811As 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
-