PresentationLockingBehavior

PresentationLockingBehavior class

Represents the behavior regarding treating the IPresentation source (file or java.io.InputStream) while loading and working with an instance of IPresentation. The source is the parameter passed to the IPresentation constructor. In the example below, the source is the “pres.pptx” file: For this example, the source (“pres.pptx” file) will be locked for a IPresentation instance lifetime, i.e. can’t be changed or deleted by the other process.

Constants

NameValueDescription
LoadAndRelease0The source will be locked only for a time of IPresentation constructor execution. If ( IBlobManagementOptions#isTemporaryFilesAllowed/ IBlobManagementOptions#setTemporaryFilesAllowed(boolean)) is set to false, all BLOBs will be loaded into memory. Otherwise, other means such a temporary files might be used.This behavior is slower than PresentationLockingBehavior#KeepLocked, and if it is possible to pass the ownership of the source to IPresentation, it is recommended to use PresentationLockingBehavior#KeepLocked.
KeepLocked1The source will be locked for a whole lifetime of IPresentation instance, until it will be disposed. IBlobManagementOptions#isTemporaryFilesAllowed( IBlobManagementOptions#isTemporaryFilesAllowed/ IBlobManagementOptions#setTemporaryFilesAllowed(boolean)) is must be set to true for using this behavior, otherwise exception will be thrown.This behavior is recommended, it is faster and consumes less memory than PresentationLockingBehavior#LoadAndRelease.

LoadAndRelease

The source will be locked only for a time of IPresentation constructor execution. If ( IBlobManagementOptions#isTemporaryFilesAllowed/ IBlobManagementOptions#setTemporaryFilesAllowed(boolean)) is set to false, all BLOBs will be loaded into memory. Otherwise, other means such a temporary files might be used.This behavior is slower than PresentationLockingBehavior#KeepLocked, and if it is possible to pass the ownership of the source to IPresentation, it is recommended to use PresentationLockingBehavior#KeepLocked.


KeepLocked

The source will be locked for a whole lifetime of IPresentation instance, until it will be disposed. IBlobManagementOptions#isTemporaryFilesAllowed( IBlobManagementOptions#isTemporaryFilesAllowed/ IBlobManagementOptions#setTemporaryFilesAllowed(boolean)) is must be set to true for using this behavior, otherwise exception will be thrown.This behavior is recommended, it is faster and consumes less memory than PresentationLockingBehavior#LoadAndRelease.


Clone

NameDescription
Clone()

Result: T


CloneTo

NameDescription
CloneTo(T)

format

NameDescription
format(java.lang.Class, long, String)

Result: String


format

NameDescription
format(Type, Object, String)

Result: String


getName

NameDescription
getName(java.lang.Class, long)

Result: String


getName

NameDescription
getName(Type, Object)

Result: String


getNames

NameDescription
getNames(java.lang.Class)

Result: List, ArrayList


getNames

NameDescription
getNames(Type)

Result: String


getUnderlyingType

NameDescription
getUnderlyingType(java.lang.Class)

Result: Class


getUnderlyingType

NameDescription
getUnderlyingType(Type)

Result: Type


getValue

NameDescription
getValue(java.lang.Class, String)

Result: long


getValues

NameDescription
getValues(Type)

Result: Array


get_Caption

NameDescription
get_Caption()

Result: String


get_Value

NameDescription
get_Value()

Result: long


isDefined

NameDescription
isDefined(java.lang.Class, long)

Result: boolean


isDefined

NameDescription
isDefined(Type, long)

Result: boolean


isDefined

NameDescription
isDefined(Type, String)

Result: boolean


isDefined

NameDescription
isDefined(Type, Object)

Result: boolean


parse

NameDescription
parse(java.lang.Class, String)

Result: long


parse

NameDescription
parse(java.lang.Class, String, Boolean)

Result: long


parse

NameDescription
parse(Type, String)

Result: long


parse

NameDescription
parse(Type, String, Boolean)

Result: long


register

NameDescription
register(Enum.AbstractEnum)

toObject

NameDescription
toObject(Type, Object)

Result: Object


toString

NameDescription
toString(java.lang.Class, long)

Result: String