public class LoadOptions extends Object
Provides options that used to open the file.
Modifier and Type | Field and Description |
---|---|
static LoadOptions |
Default |
Constructor and Description |
---|
LoadOptions()
Initializes new instance of
LoadOptions class. |
LoadOptions(FileType fileType)
Initializes new instance of
LoadOptions class. |
Modifier and Type | Method and Description |
---|---|
Charset |
getCharset()
The Charset used when opening text-based files or email messages such as
FileType.CSV , FileType.TXT , and FileType.MSG . |
FileType |
getFileType()
The type of the file to open.
|
String |
getPassword()
The password for opening password-protected file.
|
int |
getResourceLoadingTimeout()
he external resources e.g.
|
void |
setCharset(Charset value)
The Charset used when opening text-based files or email messages such as
FileType.CSV , FileType.TXT , and FileType.MSG . |
void |
setFileType(FileType value)
The type of the file to open.
|
void |
setPassword(String value)
The password for opening password-protected file.
|
void |
setResourceLoadingTimeout(int resourceLoadingTimeout)
he external resources e.g.
|
public static final LoadOptions Default
public LoadOptions()
Initializes new instance of LoadOptions
class.
public LoadOptions(FileType fileType)
Initializes new instance of LoadOptions
class.
fileType
- The type of the file to open.IllegalArgumentException
- Thrown when fileType
is null.public final Charset getCharset()
The Charset used when opening text-based files or email messages such as FileType.CSV
, FileType.TXT
, and FileType.MSG
.
Default value is (Charset.defaultCharset()
}).
public final FileType getFileType()
The type of the file to open.
public final String getPassword()
The password for opening password-protected file.
public int getResourceLoadingTimeout()
public final void setCharset(Charset value)
The Charset used when opening text-based files or email messages such as FileType.CSV
, FileType.TXT
, and FileType.MSG
.
Default value is (Charset.defaultCharset()
).
public final void setFileType(FileType value)
The type of the file to open.
public final void setPassword(String value)
The password for opening password-protected file.
public void setResourceLoadingTimeout(int resourceLoadingTimeout)
resourceLoadingTimeout
- loading timeout