Class ReportConversionData
- java.lang.Object
-
- de.hybris.platform.auditreport.service.ReportConversionData
-
public class ReportConversionData extends java.lang.ObjectPOJO representing a single entry (file) of the converted report.
-
-
Constructor Summary
Constructors Constructor Description ReportConversionData(java.lang.String name, byte[] data)Deprecated, for removal: This API element is subject to removal in a future version.since 1811ReportConversionData(java.lang.String name, java.io.InputStream stream)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byte[]getData()Deprecated, for removal: This API element is subject to removal in a future version.since 1811java.lang.StringgetName()java.io.InputStreamgetStream()
-
-
-
Constructor Detail
-
ReportConversionData
@Deprecated(since="1811", forRemoval=true) public ReportConversionData(java.lang.String name, byte[] data)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
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(since="1811", forRemoval=true) public byte[] 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
public java.io.InputStream getStream()
-
-