com.ibm.streamsx.rest.internal

Interface InputStreamConsumer<T>



  • public interface InputStreamConsumer<T>
    This class implements a handler that consumes the input stream of a streaming REST response.
    • Method Detail

      • consume

        void consume(java.io.InputStream is)
              throws java.io.IOException
        consumes the input stream. Implementations are not expected to close the stream after consumption.
        Parameters:
        is - The input stream to consume.
        Throws:
        java.io.IOException
      • getResult

        T getResult()
        Gets the Object created after consuming the InputStream
        Returns:
        the Object created after consuming the InputStream
streamsx.topology 2.1 @ IBMStreams GitHub