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 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 open.
|
String |
getPassword()
The password for opening password-protected file.
|
FileType |
getType()
The type of the file to open.
|
public LoadOptions(FileType fileType)
Initializes new instance of LoadOptions
class.
fileType
- The type of the file to open.NullPointerException
- Thrown when fileType
is null.public LoadOptions(FileType fileType, String password)
Initializes new instance of LoadOptions
class.
fileType
- The type of the file to open.password
- The password for opening password-protected file.NullPointerException
- 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 open.password
- The password for opening password-protected file.encoding
- The encoding used when opening text-based files such as FileType.CSV
or FileType.TXT
.NullPointerException
- Thrown when fileType
is null.NullPointerException
- 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
.NullPointerException
- 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 open.fileType
- The type of the file to open.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
.
getEncoding
in interface ILoadOptions
public final String getExtension()
The extension of the file to open.
getExtension
in interface ILoadOptions
public final String getPassword()
The password for opening password-protected file.
getPassword
in interface ILoadOptions
public final FileType getType()
The type of the file to open.
getType
in interface ILoadOptions