Enum Class PdfMemoryUsageSetting.Mode

java.lang.Object
java.lang.Enum<PdfMemoryUsageSetting.Mode>
eu.europa.esig.dss.pdf.PdfMemoryUsageSetting.Mode
All Implemented Interfaces:
Serializable, Comparable<PdfMemoryUsageSetting.Mode>, Constable
Enclosing class:
PdfMemoryUsageSetting

public static enum PdfMemoryUsageSetting.Mode extends Enum<PdfMemoryUsageSetting.Mode>
MemoryUsageSetting's load options
  • Enum Constant Details

    • MEMORY_FULL

      public static final PdfMemoryUsageSetting.Mode 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

      public static final PdfMemoryUsageSetting.Mode 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

      public static final PdfMemoryUsageSetting.Mode FILE
      Connects to the File in filesystem during reading. This method uses implementation specific in-memory processing (i.e. PdfBox or OpenPdf handling).
    • MIXED

      public static final PdfMemoryUsageSetting.Mode 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

      public static PdfMemoryUsageSetting.Mode[] 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

      public static PdfMemoryUsageSetting.Mode valueOf(String name)
      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 name
      NullPointerException - if the argument is null