org.appng.tools.os

## Interface Command.StreamConsumer<T>

- Type Parameters:
    `T` - the type this `StreamConsumer` produces as a result, see `getResult()`
  All Known Implementing Classes:
    StringConsumer
  Enclosing class:
    Command

      public static interface Command.StreamConsumer<T>

  Interface for a type consuming and `InputStream`.
  Author:
    Matthias Müller

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `consume(InputStream is)` Consumes the given `InputStream`.
    `T` | `getResult()` Returns the result for this `StreamConsumer`.

- - ### Method Detail

    - #### consume

          void consume(InputStream is)
                throws IOException

      Consumes the given `InputStream`.
      Parameters:
        `is` - the `InputStream` to consume
      Throws:
        `IOException` - if an error occurs while consuming

    - #### getResult

          T getResult()

      Returns the result for this `StreamConsumer`.
      Returns:
        the result of type `<T>`

Copyright © 2011–2023 aiticon GmbH. All rights reserved.