public class LoadOptions extends Object
Provides options that used to open the file.
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 encrypted file.
|
int |
getResourceLoadingTimeout()
The 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 encrypted file.
|
void |
setResourceLoadingTimeout(int resourceLoadingTimeout)
The external resources e.g.
|
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 encrypted 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 encrypted file.
public void setResourceLoadingTimeout(int resourceLoadingTimeout)
resourceLoadingTimeout
- loading timeout