public class LoadOptions extends Object implements ILoadOptions
Provides options for the document loading.
| Constructor and Description |
|---|
LoadOptions(FileType fileType)
Initializes new instance of
LoadOptions class. |
LoadOptions(FileType iniFileType,
FileType fileType)
Initializes new instance of
LoadOptions class. |
LoadOptions(FileType iniFileType,
FileType fileType,
String password)
Initializes new instance of
LoadOptions class. |
LoadOptions(FileType iniFileType,
FileType fileType,
String password,
Charset encoding)
Initializes new instance of
LoadOptions class. |
LoadOptions(FileType fileType,
String password)
Initializes new instance of
LoadOptions class. |
LoadOptions(FileType fileType,
String password,
Charset encoding)
Initializes new instance of
LoadOptions class. |
LoadOptions(String password)
Initializes new instance of
LoadOptions class. |
LoadOptions(String password,
Charset encoding)
Initializes new instance of
LoadOptions class. |
LoadOptions(String extension,
FileType fileType,
String password,
Charset encoding)
Initializes new instance of
LoadOptions class. |
| Modifier and Type | Method and Description |
|---|---|
Charset |
getEncoding()
The encoding used when opening text-based files such as
FileType.CSV or FileType.TXT. |
String |
getExtension()
The extension of the file to init.
|
String |
getPassword()
The password for opening password-protected file.
|
FileType |
getType()
The type of the file to load.
|
public LoadOptions(FileType fileType)
Initializes new instance of LoadOptions class.
fileType - The type of the file to load.com.aspose.ms.System.ArgumentNullException - Thrown when fileType is null.public LoadOptions(FileType iniFileType, FileType fileType)
Initializes new instance of LoadOptions class.
iniFileType - The type of the file to init.fileType - The type of the file to load.com.aspose.ms.System.ArgumentNullException - Thrown when iniFileType is null.com.aspose.ms.System.ArgumentNullException - Thrown when fileType is null.public LoadOptions(FileType iniFileType, FileType fileType, String password)
Initializes new instance of LoadOptions class.
iniFileType - The type of the file to init.fileType - The type of the file to load.password - The password for opening password-protected file.com.aspose.ms.System.ArgumentNullException - Thrown when iniFileType is null.com.aspose.ms.System.ArgumentNullException - Thrown when fileType is null.public LoadOptions(FileType iniFileType, FileType fileType, String password, Charset encoding)
Initializes new instance of LoadOptions class.
iniFileType - The type of the file to init.fileType - The type of the file to load.password - The password for opening password-protected file.encoding - The encoding used when opening text-based files such as FileType.CSV or FileType.TXT.com.aspose.ms.System.ArgumentNullException - Thrown when iniFileType is null.com.aspose.ms.System.ArgumentNullException - Thrown when fileType is null.com.aspose.ms.System.ArgumentNullException - Thrown when encoding is null.public LoadOptions(FileType fileType, String password)
Initializes new instance of LoadOptions class.
fileType - The type of the file to load.password - The password for opening password-protected file.com.aspose.ms.System.ArgumentNullException - Thrown when fileType is null.public LoadOptions(FileType fileType, String password, Charset encoding)
Initializes new instance of LoadOptions class.
fileType - The type of the file to load.password - The password for opening password-protected file.encoding - The encoding used when opening text-based files such as FileType.CSV or FileType.TXT.com.aspose.ms.System.ArgumentNullException - Thrown when fileType is null.com.aspose.ms.System.ArgumentNullException - Thrown when encoding is null.public LoadOptions(String password)
Initializes new instance of LoadOptions class.
password - The password for opening password-protected file.public LoadOptions(String password, Charset encoding)
Initializes new instance of LoadOptions class.
password - The password for opening password-protected file.encoding - The encoding used when opening text-based files such as FileType.CSV or FileType.TXT.com.aspose.ms.System.ArgumentNullException - Thrown when encoding is null.public LoadOptions(String extension, FileType fileType, String password, Charset encoding)
Initializes new instance of LoadOptions class.
extension - The extension of the file to load.fileType - The type of the file to load.password - The password for opening password-protected file.encoding - The encoding used when opening text-based files such as FileType.CSV or FileType.TXT.com.aspose.ms.System.ArgumentNullException - Thrown when fileType is null.com.aspose.ms.System.ArgumentNullException - Thrown when encoding is null.public final Charset getEncoding()
The encoding used when opening text-based files such as FileType.CSV or FileType.TXT.
Default value is System.Text.Encoding.Default(Charset).
getEncoding in interface ILoadOptionspublic final String getExtension()
The extension of the file to init.
getExtension in interface ILoadOptionspublic final String getPassword()
The password for opening password-protected file.
getPassword in interface ILoadOptionspublic final FileType getType()
The type of the file to load.
getType in interface ILoadOptionsCopyright © 2024. All rights reserved.