com.groupdocs.merger.domain.options

Class LoadOptions

    • Constructor Detail

      • LoadOptions

        public LoadOptions(FileType fileType)

        Initializes new instance of LoadOptions class.

        Parameters:
        fileType - The type of the file to open.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Thrown when fileType is null.
      • LoadOptions

        public LoadOptions(FileType fileType,
                   String password)

        Initializes new instance of LoadOptions class.

        Parameters:
        fileType - The type of the file to open.
        password - The password for opening password-protected file.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Thrown when fileType is null.
      • LoadOptions

        public LoadOptions(FileType fileType,
                   String password,
                   Charset encoding)

        Initializes new instance of LoadOptions class.

        Parameters:
        fileType - The type of the file to open.
        password - The password for opening password-protected file.
        encoding - The encoding used when opening text-based files such as FileType.CSV or FileType.TXT.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Thrown when fileType is null.
        com.aspose.ms.System.ArgumentNullException - Thrown when encoding is null.
      • LoadOptions

        public LoadOptions(String password)

        Initializes new instance of LoadOptions class.

        Parameters:
        password - The password for opening password-protected file.
      • LoadOptions

        public LoadOptions(String password,
                   Charset encoding)

        Initializes new instance of LoadOptions class.

        Parameters:
        password - The password for opening password-protected file.
        encoding - The encoding used when opening text-based files such as FileType.CSV or FileType.TXT.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Thrown when encoding is null.
    • Method Detail

      • getPassword

        public final String getPassword()

        The password for opening password-protected file.

        Specified by:
        getPassword in interface ILoadOptions
      • setPassword

        public final void setPassword(String value)

        The password for opening password-protected file.

      • setType

        public final void setType(FileType value)

        The type of the file to open.