Package sop

Class ByteArrayAndResult<T>

  • Type Parameters:
    T - type of result

    public class ByteArrayAndResult<T>
    extends java.lang.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.
      java.io.InputStream getInputStream()
      Return the byte array part as an InputStream.
      T getResult()
      Return the result part.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteArrayAndResult

        public ByteArrayAndResult​(byte[] bytes,
                                  T result)
    • Method Detail

      • getBytes

        public byte[] getBytes()
        Return the byte array part.
        Returns:
        bytes
      • getResult

        public T getResult()
        Return the result part.
        Returns:
        result
      • getInputStream

        public java.io.InputStream getInputStream()
        Return the byte array part as an InputStream.
        Returns:
        input stream