public class LoadOptions extends Object
Represents the options of loading the file.
Constructor and Description |
---|
LoadOptions()
Initializes a new instance of the
LoadOptions class. |
LoadOptions(String mediaType)
Initializes a new instance of the
LoadOptions class. |
LoadOptions(String mediaType,
Charset encoding)
Initializes a new instance of the
LoadOptions class. |
LoadOptions(String mediaType,
Charset encoding,
String password)
Initializes a new instance of the
LoadOptions class. |
Modifier and Type | Method and Description |
---|---|
LoadOptions |
deepClone()
Creates a new object that is a copy of the current instance.
|
Charset |
getEncoding()
Gets an encoding for the file.
|
String |
getMediaType()
Gets a media type for the file.
|
INotificationReceiver |
getNotificationReceiver()
Gets a NotificationReceiver.
|
String |
getPassword()
Gets a password for the file.
|
void |
setEncoding(Charset value)
Sets an encoding for the file.
|
void |
setMediaType(String value)
Sets a media type for the file.
|
void |
setNotificationReceiver(INotificationReceiver value)
Sets a NotificationReceiver.
|
void |
setPassword(String value)
Sets a password for the file.
|
public LoadOptions()
Initializes a new instance of the LoadOptions
class.
public LoadOptions(String mediaType)
Initializes a new instance of the LoadOptions
class.
mediaType
- A media type of the file.public LoadOptions(String mediaType, Charset encoding)
Initializes a new instance of the LoadOptions
class.
mediaType
- A media type of the file.encoding
- An encoding of the file.public String getMediaType()
Gets a media type for the file.
public void setMediaType(String value)
Sets a media type for the file.
value
- A string with a media type for the file or null, if media type is not set.public Charset getEncoding()
Gets an encoding for the file.
public void setEncoding(Charset value)
Sets an encoding for the file.
value
- An encoding for the file.public String getPassword()
Gets a password for the file.
public void setPassword(String value)
Sets a password for the file.
value
- An string with the password for the file.public INotificationReceiver getNotificationReceiver()
Gets a NotificationReceiver.
INotificationReceiver
interface.public void setNotificationReceiver(INotificationReceiver value)
Sets a NotificationReceiver.
value
- The object which implemented INotificationReceiver
interface.public LoadOptions deepClone()
Creates a new object that is a copy of the current instance.
Copyright © 2018. All rights reserved.