Package org.appng.tools.os
Interface Command.StreamConsumer<T>
-
- Type Parameters:
T
- the type thisStreamConsumer
produces as a result, seegetResult()
- All Known Implementing Classes:
StringConsumer
- Enclosing class:
- Command
public static interface Command.StreamConsumer<T>
Interface for a type consuming andInputStream
.- Author:
- Matthias Müller
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
consume(InputStream is)
Consumes the givenInputStream
.T
getResult()
Returns the result for thisStreamConsumer
.
-
-
-
Method Detail
-
consume
void consume(InputStream is) throws IOException
Consumes the givenInputStream
.- Parameters:
is
- theInputStream
to consume- Throws:
IOException
- if an error occurs while consuming
-
getResult
T getResult()
Returns the result for thisStreamConsumer
.- Returns:
- the result of type
<T>
-
-