InputStreamConsumer (Java Application API for IBM Streams)
Date: 2020-08-07

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 Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `consume(java.io.InputStream is)` consumes the input stream.
    `T` | `getResult()` Gets the Object created after consuming the InputStream

- - ### 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