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 notification receiver.
|
String |
getPassword()
Gets a password for the file.
|
IPasswordProvider |
getPasswordProvider()
Gets a password provider.
|
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 notification receiver.
|
void |
setPassword(String value)
Sets a password for the file.
|
void |
setPasswordProvider(IPasswordProvider value)
Sets a password provider.
|
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
- A string with the password for the file.public INotificationReceiver getNotificationReceiver()
Gets a notification receiver.
INotificationReceiver
interface.public void setNotificationReceiver(INotificationReceiver value)
Sets a notification receiver.
value
- The object which implemented INotificationReceiver
interface.public IPasswordProvider getPasswordProvider()
Gets a password provider.
IPasswordProvider
interface or null if password provider isn't set.public void setPasswordProvider(IPasswordProvider value)
Sets a password provider.
value
- An implementation of IPasswordProvider
interface or null if password provider isn't set.public LoadOptions deepClone()
Creates a new object that is a copy of the current instance.
Copyright © 2018. All rights reserved.