com.groupdocs.viewer.options

Class LoadOptions



  • public class LoadOptions
    extends Object

    Provides options that used to open the file.

    • Constructor Detail

      • LoadOptions

        public LoadOptions()

        Initializes new instance of LoadOptions class.

      • LoadOptions

        public LoadOptions(FileType fileType)

        Initializes new instance of LoadOptions class.

        Parameters:
        fileType - The type of the file to open.
        Throws:
        IllegalArgumentException - Thrown when fileType is null.
    • Method Detail

      • getFileType

        public final FileType getFileType()

        The type of the file to open.

      • getPassword

        public final String getPassword()

        The password for opening encrypted file.

      • getResourceLoadingTimeout

        public int getResourceLoadingTimeout()
        The external resources e.g. graphics loading timeout. The default value is 30 seconds. This option is supported for Word Processing documents that contain external resources.
        Returns:
        loading timeout
      • setFileType

        public final void setFileType(FileType value)

        The type of the file to open.

      • setPassword

        public final void setPassword(String value)

        The password for opening encrypted file.

      • setResourceLoadingTimeout

        public void setResourceLoadingTimeout(int resourceLoadingTimeout)
        The external resources e.g. graphics loading timeout. The default value is 30 seconds. This option is supported for Word Processing documents that contain external resources.
        Parameters:
        resourceLoadingTimeout - loading timeout