Class TempOutputStreamFactory

    • Constructor Detail

      • TempOutputStreamFactory

        public TempOutputStreamFactory​(File tempDir,
                                       int memoryThreshold,
                                       long maxContentSize,
                                       boolean encrypt,
                                       boolean deleteTempFileOnClose)
        Creates a TempOutputStream factory.
        Parameters:
        tempDir - the temporary directory, i.e. isDir == true, that will be used as * parent directory for creating temp file backed streams
        memoryThreshold - the memory threshold in B
        maxContentSize - the max content size in B
        encrypt - true if temp files should be encrypted
        deleteTempFileOnClose - true if temp files should be deleted on output stream close (useful if we need to cache the content for further reads). If this is false then we need to make sure we call TempOutputStream.destroy to clean up properly.
    • Method Detail

      • getTempDir

        public File getTempDir()
      • getMemoryThreshold

        public int getMemoryThreshold()
      • getMaxContentSize

        public long getMaxContentSize()
      • isEncrypt

        public boolean isEncrypt()
      • isDeleteTempFileOnClose

        public boolean isDeleteTempFileOnClose()