public class DataSaverResponse
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
DataSaverResponse(java.lang.String data,
java.lang.String filepath)
Protected constructor for the DataSaverResponse class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getData()
Returns the data that was saved.
|
java.lang.Exception |
getException()
Returns an exception, if any.
|
java.lang.String |
getFilepath()
Returns the file path where the data was written.
|
java.lang.Boolean |
getSavedSuccessfully()
Indicates whether the data was saved successfully.
|
protected void |
setException(java.lang.Exception exception)
Sets the exception, if any.
|
protected void |
setSavedSuccessfully(java.lang.Boolean savedSuccessfully)
Indicates whether the data was saved successfully.
|
java.lang.String |
toString() |
protected DataSaverResponse(java.lang.String data, java.lang.String filepath)
data
- The saved data.filepath
- The path of the file where data was saved.public java.lang.Exception getException()
protected void setException(java.lang.Exception exception)
exception
- The exception.public java.lang.Boolean getSavedSuccessfully()
protected void setSavedSuccessfully(java.lang.Boolean savedSuccessfully)
savedSuccessfully
- `true` if successful, `false` if not.public java.lang.String getData()
public java.lang.String getFilepath()
public java.lang.String toString()
toString
in class java.lang.Object