Package sop
Class ReadyWithResult<T>
java.lang.Object
sop.ReadyWithResult<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the data as aByteArrayAndResult.abstract TwriteTo(OutputStream outputStream) Write the data e.g.
-
Constructor Details
-
ReadyWithResult
public ReadyWithResult()
-
-
Method Details
-
writeTo
Write the data e.g. decrypted plaintext to the provided output stream and return the result of the processing operation.- Parameters:
outputStream- output stream- Returns:
- result, eg. signatures
- Throws:
IOException- in case of an IO errorSOPGPException.NoSignature- if there are no valid signatures found
-
toByteArrayAndResult
Return the data as aByteArrayAndResult. CallingByteArrayAndResult.getBytes()will give you access to the data as byte array, whileByteArrayAndResult.getResult()will grant access to the appended result.- Returns:
- byte array and result
- Throws:
IOException- in case of an IO errorSOPGPException.NoSignature- if there are no valid signatures found
-