com.groupdocs.parser.options

Class LoadOptions

    • Constructor Detail

      • LoadOptions

        public LoadOptions()
        Initializes a new instance of the LoadOptions class with empty Password, FileFormat equal to FileFormat.Unknown and default encodings.
      • LoadOptions

        public LoadOptions(String password)
        Initializes a new instance of the LoadOptions class with FileFormat equal to FileFormat.Unknown and default encodings.
        Parameters:
        password - The password to open the password-protected file.
      • LoadOptions

        public LoadOptions(FileFormat fileFormat)
        Initializes a new instance of the LoadOptions class with empty Password and default encodings.
        Parameters:
        fileFormat - The format of the file.
      • LoadOptions

        public LoadOptions(FileFormat fileFormat,
                   String password)
        Initializes a new instance of the LoadOptions class with default encodings.
        Parameters:
        fileFormat - The format of the file.
        password - The password to open the password-protected file.
      • LoadOptions

        public LoadOptions(FileFormat fileFormat,
                   String password,
                   Charset charset,
                   Charset defaultAnsiCharset)
        Initializes a new instance of the LoadOptions class with custom encodings.
        Parameters:
        fileFormat - The format of the file.
        password - The password to open the password-protected file.
        charset - The encoding of the document.
        defaultAnsiCharset - The default ANSI encoding which is used for encoding detection.
    • Method Detail

      • getFileFormat

        public FileFormat getFileFormat()
        Gets the file format.
        Returns:
        FileFormat enumeration that contains a file format.
      • getPassword

        public String getPassword()
        Gets the password.
        Returns:
        A string value that represents a password to open the password-protected file.
      • getCharset

        public Charset getCharset()
        Gets the encoding of the document.
        Returns:
        An instance of Charset class that represents the document encoding; null if it isn't set.
      • getDefaultAnsiCharset

        public Charset getDefaultAnsiCharset()
        Gets the default ANSI encoding which is used for encoding detection.
        Returns:
        An instance of Charset class that represents the document encoding; null if it isn't set.