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. |
Modifier and Type | Method and Description |
---|---|
Charset |
getEncoding()
The encoding used when opening text-based files such as
FileType.CSV or FileType.TXT . |
String |
getPassword()
The password for opening password-protected file.
|
FileType |
getType()
The type of the file to open.
|
void |
setEncoding(Charset value)
The encoding used when opening text-based files such as
FileType.CSV or FileType.TXT . |
void |
setPassword(String value)
The password for opening password-protected file.
|
void |
setType(FileType value)
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 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 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
public final void setEncoding(Charset value)
The encoding used when opening text-based files such as FileType.CSV
or FileType.TXT
.
public final void setPassword(String value)
The password for opening password-protected file.
public final void setType(FileType value)
The type of the file to open.