Interface IOExceptionFunction<F,T>
-
public interface IOExceptionFunction<F,T>Function that can throw an I/O Exception
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Tapply(F input)Applies the function to the given input.static <F,T>
com.google.common.base.Function<F,T>asFunction(IOExceptionFunction<F,T> f)Wraps a function that may throw an IO Exception throwing anIOExceptionWrapper.
-
-
-
Method Detail
-
apply
@Nullable T apply(@Nullable F input) throws java.io.IOException
Applies the function to the given input.- Parameters:
input- the input- Returns:
- the function result
- Throws:
java.io.IOException
-
asFunction
static <F,T> com.google.common.base.Function<F,T> asFunction(IOExceptionFunction<F,T> f)
Wraps a function that may throw an IO Exception throwing anIOExceptionWrapper.- Parameters:
f- the function
-
-