public class ByteArrayDataProvider extends java.lang.Object implements DownloadDataProvider
Constructor and Description |
---|
ByteArrayDataProvider(byte[] data,
int saveExportedByteArrayDataThresholdBytes,
java.lang.String tempDir) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
provide() |
protected java.io.InputStream |
readFromTempStorage(java.io.File file) |
protected java.io.File |
saveToTempStorage(byte[] data,
java.lang.String tempDir) |
public ByteArrayDataProvider(byte[] data, int saveExportedByteArrayDataThresholdBytes, java.lang.String tempDir)
protected java.io.File saveToTempStorage(byte[] data, java.lang.String tempDir)
@Nullable protected java.io.InputStream readFromTempStorage(java.io.File file)
public java.io.InputStream provide()
provide
in interface DownloadDataProvider