LoadOptions

Inheritance: java.lang.Object

public class LoadOptions

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

Learn more

Constructors

Constructor Description
LoadOptions() Initializes a new instance of the LoadOptions class.
LoadOptions(FileFormat fileFormat) Initializes a new instance of the LoadOptions class.

Methods

Method Description
getPassword() Gets the password for opening an encrypted document.
setPassword(String value) Sets the password for opening an encrypted document.
getFileFormat() Gets the exact type of the file that is to be loaded.

LoadOptions()

public LoadOptions()

Initializes a new instance of the LoadOptions class.

LoadOptions(FileFormat fileFormat)

public LoadOptions(FileFormat fileFormat)

Initializes a new instance of the LoadOptions class.

Parameters:

Parameter Type Description
fileFormat FileFormat The exact type of the file.

getPassword()

public final String getPassword()

Gets the password for opening an encrypted document.

Returns: java.lang.String - 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(String value)

public final void setPassword(String value)

Sets the password for opening an encrypted document.

Parameters:

Parameter Type Description
value java.lang.String 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 FileFormat 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: FileFormat - The exact type of the file that is to be loaded.