LoadOptions
Inheritance: java.lang.Object
All Implemented Interfaces: com.groupdocs.merger.domain.options.interfaces.ILoadOptions
public class LoadOptions implements ILoadOptions
Provides options for the document loading.
Constructors
| Constructor | Description |
|---|---|
| LoadOptions(FileType fileType) | 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(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 extension, FileType fileType, String password, Charset encoding) | Initializes new instance of LoadOptions class. |
| LoadOptions(FileType iniFileType, FileType fileType, String password, Charset encoding) | Initializes new instance of LoadOptions class. |
| LoadOptions(FileType iniFileType, FileType fileType, String password) | Initializes new instance of LoadOptions class. |
| LoadOptions(FileType iniFileType, FileType fileType) | Initializes new instance of LoadOptions class. |
Methods
| Method | Description |
|---|---|
| getType() | The type of the file to load. |
| getExtension() | The extension of the file to init. |
| getPassword() | The password for opening password-protected file. |
| getEncoding() | The encoding used when opening text-based files such as FileType.CSV or FileType.TXT. |
LoadOptions(FileType fileType)
public LoadOptions(FileType fileType)
Initializes new instance of LoadOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileType | FileType | The type of the file to load. |
LoadOptions(String password)
public LoadOptions(String password)
Initializes new instance of LoadOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| password | java.lang.String | The password for opening password-protected file. |
LoadOptions(String password, Charset encoding)
public LoadOptions(String password, Charset encoding)
Initializes new instance of LoadOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| password | java.lang.String | The password for opening password-protected file. |
| encoding | java.nio.charset.Charset | The encoding used when opening text-based files such as FileType.CSV or FileType.TXT. |
LoadOptions(FileType fileType, String password)
public LoadOptions(FileType fileType, String password)
Initializes new instance of LoadOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileType | FileType | The type of the file to load. |
| password | java.lang.String | The password for opening password-protected file. |
LoadOptions(FileType fileType, String password, Charset encoding)
public LoadOptions(FileType fileType, String password, Charset encoding)
Initializes new instance of LoadOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileType | FileType | The type of the file to load. |
| password | java.lang.String | The password for opening password-protected file. |
| encoding | java.nio.charset.Charset | The encoding used when opening text-based files such as FileType.CSV or FileType.TXT. |
LoadOptions(String extension, FileType fileType, String password, Charset encoding)
public LoadOptions(String extension, FileType fileType, String password, Charset encoding)
Initializes new instance of LoadOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| extension | java.lang.String | The extension of the file to load. |
| fileType | FileType | The type of the file to load. |
| password | java.lang.String | The password for opening password-protected file. |
| encoding | java.nio.charset.Charset | The encoding used when opening text-based files such as FileType.CSV or FileType.TXT. |
LoadOptions(FileType iniFileType, FileType fileType, String password, Charset encoding)
public LoadOptions(FileType iniFileType, FileType fileType, String password, Charset encoding)
Initializes new instance of LoadOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| iniFileType | FileType | The type of the file to init. |
| fileType | FileType | The type of the file to load. |
| password | java.lang.String | The password for opening password-protected file. |
| encoding | java.nio.charset.Charset | The encoding used when opening text-based files such as FileType.CSV or FileType.TXT. |
LoadOptions(FileType iniFileType, FileType fileType, String password)
public LoadOptions(FileType iniFileType, FileType fileType, String password)
Initializes new instance of LoadOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| iniFileType | FileType | The type of the file to init. |
| fileType | FileType | The type of the file to load. |
| password | java.lang.String | The password for opening password-protected file. |
LoadOptions(FileType iniFileType, FileType fileType)
public LoadOptions(FileType iniFileType, FileType fileType)
Initializes new instance of LoadOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| iniFileType | FileType | The type of the file to init. |
| fileType | FileType | The type of the file to load. |
getType()
public final FileType getType()
The type of the file to load.
Returns: FileType
getExtension()
public final String getExtension()
The extension of the file to init.
Returns: java.lang.String
getPassword()
public final String getPassword()
The password for opening password-protected file.
Returns: java.lang.String
getEncoding()
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 (java.nio.charset.Charset).
Returns: java.nio.charset.Charset