com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class BlobManagementOptions

  • java.lang.Object
    • com.aspose.slides.BlobManagementOptions
  • All Implemented Interfaces:
    IBlobManagementOptions


    public class BlobManagementOptions
    extends java.lang.Object
    implements IBlobManagementOptions

    Represents options which can be used to manage BLOB handling rules and other BLOB settings.

    • Constructor Summary

      Constructors 
      Constructor and Description
      BlobManagementOptions()
      Creates new default blob management options.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      long getMaxBlobsBytesInMemory()
      A threshold that indicates the maximum amount of bytes which BLOBs can occupied in memory.
      int getPresentationLockingBehavior()
      Represents the locking behavior for the presentation's source (stream or file).
      java.lang.String getTempFilesRootPath()
      Represents the root path on the filesystem, where the temporary files will be stored.
      boolean isTemporaryFilesAllowed()
      Set that using of temporary files is not allowed to optimize memory consumption while working with large amounts of data during presentation's lifetime.
      void setMaxBlobsBytesInMemory(long value)
      A threshold that indicates the maximum amount of bytes which BLOBs can occupied in memory.
      void setPresentationLockingBehavior(int value)
      Represents the locking behavior for the presentation's source (stream or file).
      void setTempFilesRootPath(java.lang.String value)
      Represents the root path on the filesystem, where the temporary files will be stored.
      void setTemporaryFilesAllowed(boolean value)
      Set that using of temporary files is not allowed to optimize memory consumption while working with large amounts of data during presentation's lifetime.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BlobManagementOptions

        public BlobManagementOptions()

        Creates new default blob management options.

    • Method Detail

      • isTemporaryFilesAllowed

        public final boolean isTemporaryFilesAllowed()

        Set that using of temporary files is not allowed to optimize memory consumption while working with large amounts of data during presentation's lifetime. If false, OutOfMemoryException can be thrown.

        Specified by:
        isTemporaryFilesAllowed in interface IBlobManagementOptions
      • setTemporaryFilesAllowed

        public final void setTemporaryFilesAllowed(boolean value)

        Set that using of temporary files is not allowed to optimize memory consumption while working with large amounts of data during presentation's lifetime. If false, OutOfMemoryException can be thrown.

        Specified by:
        setTemporaryFilesAllowed in interface IBlobManagementOptions
      • getTempFilesRootPath

        public final java.lang.String getTempFilesRootPath()

        Represents the root path on the filesystem, where the temporary files will be stored. System temorary directory will be used by default.

        Specified by:
        getTempFilesRootPath in interface IBlobManagementOptions
      • setTempFilesRootPath

        public final void setTempFilesRootPath(java.lang.String value)

        Represents the root path on the filesystem, where the temporary files will be stored. System temorary directory will be used by default.

        Specified by:
        setTempFilesRootPath in interface IBlobManagementOptions
      • setMaxBlobsBytesInMemory

        public final void setMaxBlobsBytesInMemory(long value)

        A threshold that indicates the maximum amount of bytes which BLOBs can occupied in memory. After this threshold was reached, all new BLOBs will be placed in temporary files and will not affect the total memory consumption of the process. IsTemporaryFilesAllowed(isTemporaryFilesAllowed()/setTemporaryFilesAllowed(boolean)) should be set to true to use this property.

        Specified by:
        setMaxBlobsBytesInMemory in interface IBlobManagementOptions