Class ByteArrayDataProvider

java.lang.Object
io.jmix.ui.download.ByteArrayDataProvider
All Implemented Interfaces:
DownloadDataProvider

public class ByteArrayDataProvider extends Object implements DownloadDataProvider
Provides data for Downloader from a byte array.
  • Constructor Details

    • ByteArrayDataProvider

      public ByteArrayDataProvider(byte[] data, int saveExportedByteArrayDataThresholdBytes, String tempDir)
      Constructor.
      Parameters:
      data - byte array
      saveExportedByteArrayDataThresholdBytes - threshold in bytes on which downloaded byte array will be saved to a temporary file to prevent HTTP session memory leaks. Use UiProperties.getSaveExportedByteArrayDataThresholdBytes().
      tempDir - where to store the temporary file if saveExportedByteArrayDataThresholdBytes is exceeded. Use CoreProperties.getTempDir().
  • Method Details