com.groupdocs.metadata.options

Class LoadOptions



  • public class LoadOptions
    extends Object

    Allows a developer to specify additional options (such as a password) when loading a file.

    • Constructor Detail

      • LoadOptions

        public LoadOptions()

        Initializes a new instance of the LoadOptions class.

      • LoadOptions

        public LoadOptions(int fileFormat)

        Initializes a new instance of the LoadOptions class.

        Parameters:
        fileFormat - The exact type of the file.
    • Method Detail

      • getPassword

        public final String getPassword()

        Gets the password for opening an encrypted document.

        Returns:
        Can be null or empty string. The default value is null. If the document is not encrypted, set this to null or the empty string.
      • setPassword

        public final void setPassword(String value)

        Sets the password for opening an encrypted document.

        Parameters:
        value - Can be null or empty string. The default value is null. If the document is not encrypted, set this to null or the empty string.
      • getFileFormat

        public final int getFileFormat()

        Gets the exact type of the file that is to be loaded. The default value is FileFormat.Unknown which means that the type should be detected automatically.

        Returns:
        The exact type of the file that is to be loaded.