Package sop
Class ByteArrayAndResult<T>
- java.lang.Object
-
- sop.ByteArrayAndResult<T>
-
- Type Parameters:
T
- type of result
public class ByteArrayAndResult<T> extends Object
Tuple of a byte array and associated result object.
-
-
Constructor Summary
Constructors Constructor Description ByteArrayAndResult(byte[] bytes, T result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
Return the byte array part.InputStream
getInputStream()
Return the byte array part as anInputStream
.T
getResult()
Return the result part.
-
-
-
Constructor Detail
-
ByteArrayAndResult
public ByteArrayAndResult(byte[] bytes, T result)
-
-
Method Detail
-
getBytes
public byte[] getBytes()
Return the byte array part.- Returns:
- bytes
-
getInputStream
public InputStream getInputStream()
Return the byte array part as anInputStream
.- Returns:
- input stream
-
-