public interface IOperation
resultCode
indicating
the success of it's execution. The IOperation
returns an
byte
-Array, which can be transformed into a String
.
Clients can register any number of IOperationDelegate
s to get a
notification after the execution.
Modifier and Type | Method and Description |
---|---|
void |
addOperationDelegate(IOperationDelegate delegate)
Adds the delivered
IOperationDelegate . |
void |
execute()
Executes this operation.
|
byte[] |
getRawResult()
Returns the
result as an byte -array. |
java.lang.String |
getResult()
Returns the
result as a String . |
java.lang.String |
getResult(java.lang.String encoding)
Returns the
result as a String with s specific
encoding. |
int |
getResultCode()
Returns the
resultCode as an int -value. |
void |
removeOperationDelegate(IOperationDelegate delegate)
Removes the delivered
IOperationDelegate . |
int getResultCode()
resultCode
as an int
-value.void execute()
java.lang.String getResult()
result
as a String
. byte
-result from getRawResult()
into
a String
by using UTF-8 as encoding. Call
getResult(String)
under the hood.getResult(String)
java.lang.String getResult(java.lang.String encoding) throws java.io.UnsupportedEncodingException
result
as a String
with s specific
encoding.encoding
- java.io.UnsupportedEncodingException
byte[] getRawResult()
result
as an byte
-array.void addOperationDelegate(IOperationDelegate delegate)
IOperationDelegate
.delegate
- void removeOperationDelegate(IOperationDelegate delegate)
IOperationDelegate
.delegate
-