Package eu.europa.esig.dss.pdf
Enum Class PdfMemoryUsageSetting.Mode
- All Implemented Interfaces:
Serializable
,Comparable<PdfMemoryUsageSetting.Mode>
,Constable
- Enclosing class:
PdfMemoryUsageSetting
MemoryUsageSetting's load options
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConnects to the File in filesystem during reading.Loads the File to the memory during the reading.Loads File to the memory prior to reading.Loads a portion of File to the memory during the reading, and the rest handles in a temporary file. -
Method Summary
Modifier and TypeMethodDescriptionstatic PdfMemoryUsageSetting.Mode
Returns the enum constant of this class with the specified name.static PdfMemoryUsageSetting.Mode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MEMORY_FULL
Loads File to the memory prior to reading. This method reads the content of File using FileInputStream and provides binary array into the specific implementation. NOTE: This method significantly increases memory loading, but may provide performance improvements. -
MEMORY_BUFFERED
Loads the File to the memory during the reading. This method uses implementation specific in-memory processing (i.e. PdfBox or OpenPdf handling). -
FILE
Connects to the File in filesystem during reading. This method uses implementation specific in-memory processing (i.e. PdfBox or OpenPdf handling). -
MIXED
Loads a portion of File to the memory during the reading, and the rest handles in a temporary file. This method uses implementation specific in-memory processing (i.e. PdfBox or OpenPdf handling).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-