public class LoadOptions extends Object
Example — using file extension:
LoadOptions options = new LoadOptions();
options.setExtension(".docx");
Example — using MIME type:
LoadOptions options = new LoadOptions();
options.setMimeType("application/msword");
| Constructor and Description |
|---|
LoadOptions()
Initializes a new instance of the
LoadOptions class. |
LoadOptions(FileFormat fileFormat)
Initializes a new instance of the
LoadOptions class with a specific file format. |
| Modifier and Type | Method and Description |
|---|---|
String |
getExtension()
Gets the file extension of the stream.
|
FileFormat |
getFileFormat()
Gets the exact type of the file that is to be loaded.
|
String |
getMimeType()
Gets the MIME type of the stream.
|
String |
getPassword()
Gets the password for opening an encrypted document.
|
void |
setExtension(String extension)
Sets the file extension of the stream.
|
void |
setFileFormat(FileFormat fileFormat)
Sets the exact type of the file that is to be loaded.
|
void |
setMimeType(String mimeType)
Sets the MIME type of the stream.
|
void |
setPassword(String password)
Sets the password for opening an encrypted document.
|
public LoadOptions()
LoadOptions class.public LoadOptions(FileFormat fileFormat)
LoadOptions class with a specific file format.fileFormat - The exact type of the file.public String getPassword()
public void setPassword(String password)
public FileFormat getFileFormat()
public void setFileFormat(FileFormat fileFormat)
public String getMimeType()
public void setMimeType(String mimeType)
public String getExtension()
public void setExtension(String extension)
Copyright © 2026. All rights reserved.